This commit is contained in:
2022-12-10 23:58:09 +01:00
parent 29da22d579
commit acda284da1
25 changed files with 799 additions and 111 deletions

22
components/SEO.tsx Normal file
View File

@@ -0,0 +1,22 @@
import Head from "next/head";
type seoprops = {
title?: string;
noatsign?: boolean; // simply add "noatsign" as property to element
description?: string;
};
const ComponentSEO = ({ title, noatsign, description }: seoprops) => {
const defaultDescription = "Witryna internetowa Gractwa.";
return (
<Head>
<title>
{title ? `${title}${noatsign ? "" : " @ gractwo.pl"}` : "gractwo.pl"}
</title>
<link rel="shortcut icon" href="/logo.svg" type="image/x-icon" />
<meta name="description" content={description || defaultDescription} />
</Head>
);
};
export default ComponentSEO;