feat: add new post creation script and theme update script, remove git-protect.list and sync-upstream.sh

- Deleted `README-zh.md` and `README.md` as they are no longer needed.
- Removed `git-protect.list` to streamline the synchronization process.
- Introduced `new-post.ts` script for easier blog post creation with default metadata.
- Added `update-theme.ts` script to simplify theme updates from the upstream repository.
- Updated content configuration to handle optional updated dates correctly.
- Adjusted pin values in theme guide documents to allow a range from 0-99 instead of 1-99.
This commit is contained in:
radishzzz 2025-05-28 20:41:08 +01:00
parent 886c959183
commit 2f80ab9523
17 changed files with 494 additions and 573 deletions

View file

@ -11,7 +11,9 @@
"astro": "astro",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"comments": "curl -L https://unpkg.com/@waline/client@latest/dist/waline.css -o public/assets/waline/waline.css && curl -L https://unpkg.com/@waline/client@latest/dist/waline.js -o public/assets/waline/waline.js"
"comments": "curl -L https://unpkg.com/@waline/client@latest/dist/waline.css -o public/assets/waline/waline.css && curl -L https://unpkg.com/@waline/client@latest/dist/waline.js -o public/assets/waline/waline.js",
"update-theme": "esno scripts/update-theme.ts",
"new-post": "esno scripts/new-post.ts"
},
"dependencies": {
"@astrojs/mdx": "^4.3.0",
@ -22,7 +24,7 @@
"astro-og-canvas": "^0.7.0",
"astro-robots-txt": "^1.0.0",
"canvaskit-wasm": "^0.40.0",
"feed": "^5.0.1",
"feed": "^5.1.0",
"gsap": "^3.13.0",
"katex": "^0.16.22",
"markdown-it": "^14.1.0",
@ -45,7 +47,7 @@
"@astrojs/check": "^0.9.4",
"@types/hast": "^3.0.4",
"@types/markdown-it": "^14.1.2",
"@types/node": "^22.15.21",
"@types/node": "^22.15.24",
"@types/sanitize-html": "^2.16.0",
"@unocss/eslint-plugin": "66.1.2",
"@unocss/preset-attributify": "66.1.2",
@ -53,7 +55,8 @@
"astro-eslint-parser": "^1.2.2",
"eslint": "^9.27.0",
"eslint-plugin-astro": "^1.3.1",
"lint-staged": "^16.0.0",
"esno": "^4.8.0",
"lint-staged": "^16.1.0",
"typescript": "~5.8.3",
"unocss": "66.1.2",
"unocss-preset-theme": "^0.14.1"