Skip to content

Commit

Permalink
chore: sitemap for i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
gaomingzhao666 committed Nov 1, 2024
1 parent 1304e10 commit e95f546
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default defineConfig({
site: 'https://blog-template-gray.vercel.app/', // Write here your website url
markdown: {
remarkPlugins: [remarkReadingTime],
drafts: true,
shikiConfig: {
theme: 'material-theme-palenight',
wrap: true,
Expand All @@ -28,7 +27,16 @@ export default defineConfig({
},
drafts: true,
}),
sitemap(),
sitemap({
i18n: {
defaultLocale: 'en', // 所有不包含 `es` 或 `fr` 的链接都将被视为默认语言环境,即 `en`
locales: {
en: 'en',
ja: 'ja',
cn: 'cn',
},
},
}),
tailwind(),
],
})

0 comments on commit e95f546

Please sign in to comment.