@@ -1,4 +1,5 @@
|
|||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
|
import logo from "../public/logo.svg";
|
||||||
|
|
||||||
type seoprops = {
|
type seoprops = {
|
||||||
title?: string;
|
title?: string;
|
||||||
@@ -8,13 +9,29 @@ type seoprops = {
|
|||||||
|
|
||||||
const SEO = ({ title, noatsign, description }: seoprops) => {
|
const SEO = ({ title, noatsign, description }: seoprops) => {
|
||||||
const defaultDescription = "Witryna internetowa Gractwa.";
|
const defaultDescription = "Witryna internetowa Gractwa.";
|
||||||
|
const titleEnhanced = title
|
||||||
|
? `${title}${noatsign ? "" : " @ gractwo.pl"}`
|
||||||
|
: "gractwo.pl";
|
||||||
return (
|
return (
|
||||||
<Head>
|
<Head>
|
||||||
<title>
|
<title>{titleEnhanced}</title>
|
||||||
{title ? `${title}${noatsign ? "" : " @ gractwo.pl"}` : "gractwo.pl"}
|
|
||||||
</title>
|
|
||||||
<link rel="shortcut icon" href="/logo.svg" type="image/x-icon" />
|
<link rel="shortcut icon" href="/logo.svg" type="image/x-icon" />
|
||||||
<meta name="description" content={description || defaultDescription} />
|
<meta name="description" content={description || defaultDescription} />
|
||||||
|
|
||||||
|
<meta name="theme-color" content="#fb636b" />
|
||||||
|
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta property="og:url" content="https://gractwo.pl" />
|
||||||
|
<meta property="og:title" content={titleEnhanced} />
|
||||||
|
<meta property="og:image" content={logo} />
|
||||||
|
<meta property="og:site_name" content="gractwo.pl" />
|
||||||
|
<meta
|
||||||
|
property="og:description"
|
||||||
|
content={description || defaultDescription}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<meta name="robots" content="index, follow" />
|
||||||
|
<meta name="googlebot" content="index, follow" />
|
||||||
</Head>
|
</Head>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user