Skip to content

Commit c7ca818

Browse files
committed
fix scaffold issues across config, data and pages
- enable @astrojs/sitemap (declared in deps but not registered); pin to 3.4.x because 3.5+ requires astro 5 - wire up client-side filter buttons on /projects and /tools for both locales (status filter for projects, type+status for tools) - normalize lang codes in projects/tools/members data to match the i18n key set ('zh-hans' instead of 'zh') - drop unused archiver devDependency - replace the dev-instruction text on the search page with a neutral one-liner - gitignore local editor and tooling configs
1 parent 592e430 commit c7ca818

13 files changed

Lines changed: 324 additions & 1117 deletions

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ public/pagefind/
1616
# OS
1717
.DS_Store
1818
Thumbs.db
19+
20+
# Local tooling / editor configs
21+
.claude/
22+
CLAUDE.md
23+
.idea/
24+
.vscode/

astro.config.mjs

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,15 @@
11
import { defineConfig } from 'astro/config';
22
import tailwind from '@astrojs/tailwind';
3+
import sitemap from '@astrojs/sitemap';
34

4-
// ============================================================
5-
// TODO: 请根据你的实际部署情况修改 SITE_URL
6-
//
7-
// 情况一:GitHub Pages 用户/组织站点(username.github.io)
8-
// site: 'https://username.github.io'
9-
// 不需要设置 base
10-
//
11-
// 情况二:GitHub Pages 项目站点(username.github.io/repo-name)
12-
// site: 'https://username.github.io'
13-
// base: '/repo-name'
14-
//
15-
// 情况三:自定义域名
16-
// site: 'https://yourdomain.com'
17-
// 不需要设置 base
18-
// ============================================================
195
const SITE_URL = 'https://montagesubs.github.io';
20-
// const BASE_PATH = '/montagesubs'; // 如果是项目站点,取消注释并修改
216

227
export default defineConfig({
238
site: SITE_URL,
24-
// base: BASE_PATH, // 如果是项目站点,取消注释
259

2610
integrations: [
2711
tailwind(),
12+
sitemap(),
2813
],
2914

3015
output: 'static',

0 commit comments

Comments
 (0)