Skip to content

Commit

Permalink
Remove trailing slashes in the sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
dguo committed Jul 16, 2023
1 parent 1ffdcf6 commit 288610f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export default defineConfig({
!page.includes("blog/my-approach-to-code-review") &&
!page.includes(
"blog/thinking-in-binaries-spectrums-and-dimensions"
)
),
serialize: (item) => {
// Remove trailing slashes
item.url = item.url.replace(/\/$/, "");
return item;
}
})
],
markdown: {
Expand Down

0 comments on commit 288610f

Please sign in to comment.