@astro-minimax/cli 0.7.5 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,41 @@
1
+ ---
2
+ title: "系列文章示例 - 第一部分"
3
+ description: "这是系列文章的第一篇,演示文章系列导航功能"
4
+ pubDatetime: 2024-01-07T00:00:00.000Z
5
+ author: "Your Name"
6
+ tags:
7
+ - 教程
8
+ - 系列
9
+ category: 教程/示例
10
+ series:
11
+ name: 系列文章示例
12
+ order: 1
13
+ ---
14
+
15
+ ## 系列文章说明
16
+
17
+ astro-minimax 支持**文章系列**功能,可以自动在文章底部显示系列导航,包括当前进度、上一篇和下一篇链接。
18
+
19
+ ### 系列配置
20
+
21
+ 在 frontmatter 中添加 `series` 字段:
22
+
23
+ ```yaml
24
+ ---
25
+ title: "文章标题"
26
+ series:
27
+ name: "系列名称"
28
+ order: 1 # 文章在系列中的顺序
29
+ ---
30
+ ```
31
+
32
+ ### 功能特性
33
+
34
+ - 自动显示系列进度条
35
+ - 显示当前文章在系列中的位置
36
+ - 自动生成上一篇/下一篇导航链接
37
+ - 系列页面聚合所有系列文章
38
+
39
+ ---
40
+
41
+ > **下一篇**: [系列文章示例 - 第二部分](/zh/posts/series-example-02)
@@ -0,0 +1,41 @@
1
+ ---
2
+ title: "系列文章示例 - 第二部分"
3
+ description: "这是系列文章的第二篇,继续演示文章系列导航功能"
4
+ pubDatetime: 2024-01-08T00:00:00.000Z
5
+ author: "Your Name"
6
+ tags:
7
+ - 教程
8
+ - 系列
9
+ category: 教程/示例
10
+ series:
11
+ name: 系列文章示例
12
+ order: 2
13
+ ---
14
+
15
+ ## 系列文章进阶
16
+
17
+ 这是系列文章的第二部分。当读者阅读时,可以在文章底部看到:
18
+
19
+ - 系列进度(如 2/2)
20
+ - 上一篇文章的链接
21
+ - 系列概览
22
+
23
+ ### 适用场景
24
+
25
+ 文章系列功能特别适合:
26
+
27
+ - 多章节教程
28
+ - 主题系列文章
29
+ - 渐进式学习路径
30
+ - 项目开发记录
31
+
32
+ ### 最佳实践
33
+
34
+ 1. **统一命名**:系列内文章标题使用一致的命名模式
35
+ 2. **合理分篇**:每篇文章聚焦一个主题
36
+ 3. **相互引用**:在文中适当引用其他篇章
37
+ 4. **完整性**:确保系列文章形成完整的知识体系
38
+
39
+ ---
40
+
41
+ > **上一篇**: [系列文章示例 - 第一部分](/zh/posts/series-example-01)
@@ -6,6 +6,9 @@
6
6
  "baseUrl": ".",
7
7
  "paths": {
8
8
  "@/*": ["./src/*"]
9
- }
9
+ },
10
+ "jsx": "react-jsx",
11
+ "jsxImportSource": "preact",
12
+ "types": ["@cloudflare/workers-types"]
10
13
  }
11
14
  }