Skip to content

Commit

Permalink
chore(website): add sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
HasithDeAlwis committed Feb 13, 2025
1 parent 7173bc4 commit 941f155
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions apps/website/app/routes/[sitemap.xml].tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export function loader() {
const content = `
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://cuhacking.ca/</loc>
<lastmod>2024-02-12</lastmod>
<changefreq>monthly</changefreq>
<priority>1.0</priority>
</url>
</urlset>
`
return new Response(content, {
status: 200,
headers: {
'Content-Type': 'application/xml',
'xml-version': '1.0',
'encoding': 'UTF-8',
},
})
};

0 comments on commit 941f155

Please sign in to comment.