Skip to content

Commit

Permalink
feat: improve seo
Browse files Browse the repository at this point in the history
  • Loading branch information
dotslashf committed Aug 17, 2024
1 parent e9bafbf commit d44bbbd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/copy-pasta/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export async function generateMetadata({

return {
title,
alternates: {
canonical: `/copy-pasta/${copyPasta.id}`,
},
openGraph: {
title,
description,
Expand Down
6 changes: 6 additions & 0 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,11 @@ export default function sitemap(): MetadataRoute.Sitemap {
changeFrequency: "yearly",
priority: 0.8,
},
{
url: "https://www.arsiptemplate.app/copy-pasta/create",
lastModified: new Date(),
changeFrequency: "yearly",
priority: 0.8,
},
];
}

0 comments on commit d44bbbd

Please sign in to comment.