Skip to content

Commit e81da4f

Browse files
committed
Change sitemap data for contribute, front and blog page
1 parent c29f75c commit e81da4f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/pages/blog/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import fadeAnim from "@/animations/fade";
2020
import Heading from "@/components/layout/Heading";
2121
import { makeOgMeta } from "@/utils/meta/opengraph";
2222
import Label from "@/components/controls/Label";
23+
import { makeSitemapMeta } from "@/utils/meta/sitemap";
2324

2425
interface BlogPageProps {
2526
articles: IArticleBrief[];
@@ -90,6 +91,7 @@ const BlogPage: Page<BlogPageProps> = ({ articles, pathname }) => {
9091
<>
9192
<Head>
9293
{makeOgMeta({ title: "Blog", pathname })}
94+
{makeSitemapMeta({ changeFreq: "weekly", priority: 0.8 })}
9395
</Head>
9496
<main aria-labelledby="blog" className="flex flex-col flex-1 w-full gap-8 max-w-7xl">
9597
<Heading.H1 id="blog" className="text-center text-secondary">

src/pages/contribute.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ import FeedbackSection from "@/components/pages/contribute/FeedbackSection";
55

66
import { Page } from "@/types/page";
77
import { makeOgMeta } from "@/utils/meta/opengraph";
8+
import { makeSitemapMeta } from "@/utils/meta/sitemap";
89

910
const ContributePage: Page = ({ pathname }) => {
1011
return (
1112
<>
1213
<Head>
1314
{makeOgMeta({ title: "Contribute", pathname })}
15+
{makeSitemapMeta({ priority: 0.6 })}
1416
</Head>
1517
<main aria-labelledby="contribute" className="flex flex-col flex-1 w-full gap-8 max-w-7xl">
1618
<Heading.H1 id="contribute" className="text-center text-secondary">

src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const FrontPage: Page = ({ }) => {
3737
<>
3838
<Head>
3939
<title>Commit Rocket</title>
40-
{makeSitemapMeta({ priority: 0.9 })}
40+
{makeSitemapMeta({ priority: 1 })}
4141
</Head>
4242
<main aria-labelledby="hero-title" className="flex flex-col flex-1 w-full gap-32 pb-8 max-w-7xl">
4343
<section aria-label="hero" className="flex flex-col-reverse items-center h-fit min-h-0 xl:flex-row xl:min-h-[30rem] xl:h-[75dvh] xl:h-[75vh] mx-auto">

0 commit comments

Comments
 (0)