feat: add sitemap.xml (#33)

Co-authored-by: saica.go <zephyird@gmail.com>
This commit is contained in:
CorrectRoad
2024-04-22 23:48:31 +08:00
committed by GitHub
parent e80999669a
commit 91773fc520
4 changed files with 49 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import remarkMath from "remark-math"
import { remarkReadingTime } from "./src/plugins/remark-reading-time.mjs"
import svelte from "@astrojs/svelte"
import swup from '@swup/astro';
import sitemap from '@astrojs/sitemap';
const oklchToHex = (str) => {
const DEFAULT_HUE = 250
@@ -49,6 +50,7 @@ export default defineConfig({
Image: false,
}),
svelte(),
sitemap(),
],
markdown: {
remarkPlugins: [remarkMath, remarkReadingTime],