Skip to content

Commit

Permalink
fix: delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanRos committed Dec 28, 2023
1 parent 7e6c60a commit 4979053
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pages/site-map.xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ function generateSiteMap(posts) {
`
}

export default function SiteMap() {
return <div>{/* Render your sitemap content here */}</div>
}

export async function getStaticProps() {
const files = fs.readdirSync(path.join(process.cwd(), "content"))

Expand All @@ -91,7 +87,6 @@ export async function getStaticProps() {
)

const sitemap = generateSiteMap(posts)
console.log(sitemap)
fs.writeFileSync(path.join(process.cwd(), "public", "sitemap.xml"), sitemap)

return {
Expand Down

0 comments on commit 4979053

Please sign in to comment.