feat(sponsors): 重构赞助页面并迁移至/sponsors路径

- 将原/donate页面迁移至/sponsors路径并重构实现
- 添加sponsors.json数据文件存储赞助者信息
- 实现从astro文件自动提取友链数据的脚本
- 更新导航栏配置和重定向规则
- 新增相关类型定义和配置文件
This commit is contained in:
二叉树树
2025-10-26 22:47:18 +08:00
parent 6a3ce5f638
commit c5c5f33ba8
12 changed files with 808 additions and 805 deletions

View File

@@ -37,6 +37,10 @@ export default defineConfig({
base: "/",
trailingSlash: "always",
output: "static",
redirects: {
"/donate": "/sponsors",
"/donate/": "/sponsors/"
},
integrations: [tailwind({
nesting: true,
}), swup({