Skip to content

Commit

Permalink
docs: add sitemap to docusaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Nov 29, 2024
1 parent d41e055 commit 82fd69d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ const config: Config = {
blog: false,
theme: {
customCss: ["./src/css/custom.css", "../src/style.css"]
},
sitemap: {
lastmod: "date",
changefreq: "weekly",
priority: 0.5,
ignorePatterns: ["/tags/**"],
filename: "sitemap.xml",
createSitemapItems: async (params) => {
const { defaultCreateSitemapItems, ...rest } = params;
const items = await defaultCreateSitemapItems(rest);
return items.filter((item) => !item.url.includes("/page/"));
}
}
} satisfies Preset.Options
]
Expand Down

0 comments on commit 82fd69d

Please sign in to comment.