Skip to content

Commit

Permalink
Merge pull request #70 from thefrontside/cl/fix-sitemaps
Browse files Browse the repository at this point in the history
🐛 fixup sitemaps which did not contain the correct prefix
  • Loading branch information
cowboyd authored Dec 20, 2024
2 parents d448ede + e6f97ec commit 95174cf
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 2 deletions.
109 changes: 109 additions & 0 deletions www/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions www/routes/sitemap.xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export const handler: Handlers = {
);
let paths = Object.entries(docs).flatMap(([topic, collection]) => {
if ("pages" in collection) {
return collection.pages.map(([id]) => `${topic}/${id}`);
return collection.pages.map(([id]) => `docs/${topic}/${id}`);
} else {
return topic;
return `docs/${topic}`;
}
});

Expand Down

0 comments on commit 95174cf

Please sign in to comment.