Skip to content

Commit

Permalink
Add sitemap.ts and remove sitemap.xml.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
giovamuge committed Mar 21, 2024
1 parent b2f127f commit 49e813e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 49 deletions.
38 changes: 38 additions & 0 deletions app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { MetadataRoute } from "next"

const BASE_URL = "https://giovamuge.github.io"

export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: BASE_URL,
lastModified: new Date(),
changeFrequency: "yearly",
priority: 1,
},
{
url: BASE_URL + "/#intro",
lastModified: new Date(),
changeFrequency: "yearly",
priority: 0.8,
},
{
url: BASE_URL + "/#projects",
lastModified: new Date(),
changeFrequency: "monthly",
priority: 0.8,
},
{
url: BASE_URL + "/#technologies",
lastModified: new Date(),
changeFrequency: "monthly",
priority: 0.5,
},
{
url: BASE_URL + "/#repos",
lastModified: new Date(),
changeFrequency: "weekly",
priority: 0.5,
},
]
}
49 changes: 0 additions & 49 deletions app/sitemap.xml.ts

This file was deleted.

0 comments on commit 49e813e

Please sign in to comment.