mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 19:22:52 +02:00
✨ 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:
parent
886c959183
commit
2f80ab9523
17 changed files with 494 additions and 573 deletions
|
@ -10,7 +10,10 @@ const posts = defineCollection({
|
|||
published: z.date(),
|
||||
// optional
|
||||
description: z.string().optional().default(''),
|
||||
updated: z.date().optional(),
|
||||
updated: z.preprocess(
|
||||
val => val === '' ? undefined : val,
|
||||
z.date().optional(),
|
||||
),
|
||||
tags: z.array(z.string()).optional().default([]),
|
||||
// Advanced
|
||||
draft: z.boolean().optional().default(false),
|
||||
|
|
|
@ -301,7 +301,7 @@ tags:
|
|||
|
||||
# Advanced, Optional
|
||||
draft: true/false
|
||||
pin: 1-99
|
||||
pin: 0-99
|
||||
toc: true/false
|
||||
lang: de/en/es/fr/ja/ko/pl/pt/ru/zh/zh-tw
|
||||
abbrlink: theme-guide
|
||||
|
|
|
@ -301,7 +301,7 @@ tags:
|
|||
|
||||
# Avanzado, Opcional
|
||||
draft: true/false
|
||||
pin: 1-99
|
||||
pin: 0-99
|
||||
toc: true/false
|
||||
lang: de/en/es/fr/ja/ko/pl/pt/ru/zh/zh-tw
|
||||
abbrlink: theme-guide
|
||||
|
|
|
@ -301,7 +301,7 @@ tags:
|
|||
|
||||
# 高度な設定(任意)
|
||||
draft: true/false
|
||||
pin: 1-99
|
||||
pin: 0-99
|
||||
toc: true/false
|
||||
lang: de/en/es/fr/ja/ko/pl/pt/ru/zh/zh-tw
|
||||
abbrlink: theme-guide
|
||||
|
|
|
@ -301,7 +301,7 @@ tags:
|
|||
|
||||
# Расширенные, опциональные
|
||||
draft: true/false
|
||||
pin: 1-99
|
||||
pin: 0-99
|
||||
toc: true/false
|
||||
lang: de/en/es/fr/ja/ko/pl/pt/ru/zh/zh-tw
|
||||
abbrlink: theme-guide
|
||||
|
|
|
@ -301,7 +301,7 @@ tags:
|
|||
|
||||
# 進階,可選
|
||||
draft: true/false
|
||||
pin: 1-99
|
||||
pin: 0-99
|
||||
toc: true/false
|
||||
lang: de/en/es/fr/ja/ko/pl/pt/ru/zh/zh-tw
|
||||
abbrlink: theme-guide
|
||||
|
|
|
@ -301,7 +301,7 @@ tags:
|
|||
|
||||
# 进阶,可选
|
||||
draft: true/false
|
||||
pin: 1-99
|
||||
pin: 0-99
|
||||
toc: true/false
|
||||
lang: de/en/es/fr/ja/ko/pl/pt/ru/zh/zh-tw
|
||||
abbrlink: theme-guide
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue