improve seo a bit
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import Head from "next/head";
|
||||
import logo from "../public/logo.svg";
|
||||
|
||||
type seoprops = {
|
||||
title?: string;
|
||||
@@ -8,13 +9,29 @@ type seoprops = {
|
||||
|
||||
const SEO = ({ title, noatsign, description }: seoprops) => {
|
||||
const defaultDescription = "Witryna internetowa Gractwa.";
|
||||
const titleEnhanced = title
|
||||
? `${title}${noatsign ? "" : " @ gractwo.pl"}`
|
||||
: "gractwo.pl";
|
||||
return (
|
||||
<Head>
|
||||
<title>
|
||||
{title ? `${title}${noatsign ? "" : " @ gractwo.pl"}` : "gractwo.pl"}
|
||||
</title>
|
||||
<title>{titleEnhanced}</title>
|
||||
<link rel="shortcut icon" href="/logo.svg" type="image/x-icon" />
|
||||
<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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user