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

@ -78,10 +78,6 @@ Retypeset is a static blog theme based on the [Astro](https://astro.build/) fram
Retypeset releases [new features](https://github.com/radishzzz/astro-theme-retypeset/issues/18) from time to time. You can refer to the [GitHub Docs](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork) and run `Sync fork` in your repository to sync with the latest branch. Do not click `Discard Changes`, or you will lose your modifications.
For details on how to safely pull upstream changes **while preserving your custom content**, see:
👉 [`scripts/README.md`](./scripts/README.md)
## Credits
- [Typography](https://github.com/moeyua/astro-theme-typography)