indexing seo changes
This commit is contained in:
@@ -4,9 +4,17 @@ type seoprops = {
|
|||||||
title?: string;
|
title?: string;
|
||||||
noatsign?: boolean; // simply add "noatsign" as property to element
|
noatsign?: boolean; // simply add "noatsign" as property to element
|
||||||
description?: string;
|
description?: string;
|
||||||
|
picture?: string;
|
||||||
|
dontindex?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
const SEO = ({ title, noatsign, description }: seoprops) => {
|
const SEO = ({
|
||||||
|
title,
|
||||||
|
noatsign,
|
||||||
|
description,
|
||||||
|
picture,
|
||||||
|
dontindex,
|
||||||
|
}: seoprops) => {
|
||||||
const titleEnhanced = title
|
const titleEnhanced = title
|
||||||
? `${title}${noatsign ? "" : " @ gractwo.pl"}`
|
? `${title}${noatsign ? "" : " @ gractwo.pl"}`
|
||||||
: "Gractwo!";
|
: "Gractwo!";
|
||||||
@@ -25,15 +33,21 @@ const SEO = ({ title, noatsign, description }: seoprops) => {
|
|||||||
<meta property="og:title" content={titleEnhanced} />
|
<meta property="og:title" content={titleEnhanced} />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content="https://gractwo.pl" />
|
<meta property="og:url" content="https://gractwo.pl" />
|
||||||
<meta property="og:image" content={remoteLogoRender} />
|
<meta property="og:image" content={picture || remoteLogoRender} />
|
||||||
<meta property="og:site_name" content="gractwo.pl" />
|
<meta property="og:site_name" content="gractwo.pl" />
|
||||||
<meta
|
<meta
|
||||||
property="og:description"
|
property="og:description"
|
||||||
content={description || defaultDescription}
|
content={description || defaultDescription}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<meta name="robots" content="index, follow" />
|
<meta
|
||||||
<meta name="googlebot" content="index, follow" />
|
name="robots"
|
||||||
|
content={dontindex ? "noindex, nofollow" : "index, follow"}
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="googlebot"
|
||||||
|
content={dontindex ? "noindex, nofollow" : "index, follow"}
|
||||||
|
/>
|
||||||
</Head>
|
</Head>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const PageError404 = () => {
|
|||||||
}, [router.asPath]);
|
}, [router.asPath]);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SEO title="404" />
|
<SEO title="404" dontindex />
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { SEO } from "../components/SEO";
|
import { SEO } from "../components/SEO";
|
||||||
|
|
||||||
const PageCytaty = () => {
|
const PageCytaty = () => {
|
||||||
|
const SEOdesc = `Strona w trakcie budowy - zbiorowisko cytatów użytkowników gractwa!`;
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SEO title="cytaty" />
|
<SEO title="cytaty" description={SEOdesc} />
|
||||||
<main>Miejsce na stronkę od cytatów.</main>
|
<main>Miejsce na stronkę od cytatów.</main>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ const PageMe = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<SEO title="twój profil" dontindex />
|
||||||
{isLoading && (
|
{isLoading && (
|
||||||
<main>
|
<main>
|
||||||
<h3>Ładujemy dane dla Ciebie...</h3>
|
<h3>Ładujemy dane dla Ciebie...</h3>
|
||||||
@@ -51,7 +52,6 @@ const PageMe = () => {
|
|||||||
)}
|
)}
|
||||||
{!isLoading && !error && user && (
|
{!isLoading && !error && user && (
|
||||||
<main>
|
<main>
|
||||||
<SEO title="twój profil" />
|
|
||||||
<ProfileCard
|
<ProfileCard
|
||||||
data={{
|
data={{
|
||||||
username: user.name || "unknown user",
|
username: user.name || "unknown user",
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ const PageMeSettings = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<SEO dontindex title="ustawienia konta" />
|
||||||
{isLoading && (
|
{isLoading && (
|
||||||
<>
|
<>
|
||||||
<main>
|
<main>
|
||||||
|
|||||||
@@ -31,7 +31,12 @@ const ProfilePage = () => {
|
|||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
if (loading) {
|
if (loading) {
|
||||||
return <main style={{ color: "grey" }}>Fetching data...</main>;
|
return (
|
||||||
|
<>
|
||||||
|
<SEO dontindex />
|
||||||
|
<main style={{ color: "grey" }}>Fetching data...</main>
|
||||||
|
</>
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
if (
|
if (
|
||||||
persons
|
persons
|
||||||
@@ -45,38 +50,11 @@ const ProfilePage = () => {
|
|||||||
})[0];
|
})[0];
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SEO title={person.Name} />
|
<SEO
|
||||||
{/* <main>
|
title={person.Name}
|
||||||
<div
|
description={person.Desc}
|
||||||
style={{
|
picture={person.Img}
|
||||||
display: "flex",
|
|
||||||
flexDirection: "row",
|
|
||||||
justifyContent: "center",
|
|
||||||
alignItems: "center",
|
|
||||||
gap: "1rem",
|
|
||||||
margin: "2rem 0 0 0",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
src={person.Img}
|
|
||||||
alt={`${person.Name} profile image`}
|
|
||||||
style={{
|
|
||||||
width: "128px",
|
|
||||||
aspectRatio: "1/1",
|
|
||||||
objectFit: "cover",
|
|
||||||
borderRadius: "50%",
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
<div>
|
|
||||||
<h1>{person.Name}</h1>
|
|
||||||
<p>{person.Desc}</p>
|
|
||||||
</div>
|
|
||||||
</div> */}
|
|
||||||
{/* FOR LATER BIGDESC DATASET */}
|
|
||||||
{/* {person.profile?.bigdesc.map((el, index) => {
|
|
||||||
return <p key={index}>{el || <br />}</p>;
|
|
||||||
})} */}
|
|
||||||
{/* </main> */}
|
|
||||||
<main>
|
<main>
|
||||||
<ProfileCard
|
<ProfileCard
|
||||||
data={{
|
data={{
|
||||||
@@ -106,7 +84,7 @@ const ProfilePage = () => {
|
|||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<SEO title="nieznany profil" />
|
<SEO title="nieznany profil" dontindex />
|
||||||
<h1>Sorki!{" :("}</h1>
|
<h1>Sorki!{" :("}</h1>
|
||||||
<p style={{ lineHeight: "30px" }}>
|
<p style={{ lineHeight: "30px" }}>
|
||||||
Sprawdź pisownię:
|
Sprawdź pisownię:
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { SEO } from "../components/SEO";
|
import { SEO } from "../components/SEO";
|
||||||
|
|
||||||
const PageRankingi = () => {
|
const PageRankingi = () => {
|
||||||
|
const SEOdesc = `Strona w trakcie budowy - rankingi wiadomości i danych wśród użytkowników gractwa!`;
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SEO title="rankingi" />
|
<SEO title="rankingi" description={SEOdesc} />
|
||||||
<main>Miejsce na stronkę od rankingów.</main>
|
<main>Miejsce na stronkę od rankingów.</main>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user