Skip to content

Commit

Permalink
✨ Add sitemap.xml
Browse files Browse the repository at this point in the history
Having a sitemap to all of our sites will allow us to statically
generate across all the different content repositories that we have.

This is a simple site, with simple content, so all that is needed is
to add `sitemap.xml.ts` route that walks across the document table of
contents stored in `toc.json` and create the manifest of urls
contained therein.
  • Loading branch information
cowboyd committed Sep 20, 2024
1 parent 40c72a3 commit bdd548a
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 39 deletions.
7 changes: 6 additions & 1 deletion www/deno.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"tasks": {
"start": "deno run -A --watch=static/,routes/ dev.ts",
"test": "deno test -A --unstable test"
"test": "deno test -A --unstable --no-check test"
},
"importMap": "./import_map.json",
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "preact"
},
"lint": {
"rules": {
"exclude": ["prefer-const", "require-yield"]
}
}
}
Loading

0 comments on commit bdd548a

Please sign in to comment.