feat: add sitemap integration and configure site URL

- Add @astrojs/sitemap dependency and configure it in astro.config.mjs
- Set site URL and markdown theme in astro config
- Remove unused theme variables from global.css
This commit is contained in:
joyzhao
2025-06-19 21:17:01 +08:00
parent 3b0c8e39df
commit c698d1ae45
4 changed files with 69 additions and 6 deletions

View File

@@ -4,8 +4,16 @@ import tailwindcss from "@tailwindcss/vite";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
export default defineConfig({
site: 'https://zhaoguiyang.com',
markdown: {
shikiConfig: {
theme: 'dracula',
},
},
vite: {
plugins: [tailwindcss()],
},
@@ -19,5 +27,13 @@ export default defineConfig({
prefixDefaultLocale: false,
}
},
integrations: [react()]
integrations: [react(), sitemap({
i18n: {
defaultLocale: 'en',
locales: {
en: 'en',
zh: 'zh'
},
},
})]
});