Skip to content

Commit 4fb47cc

Browse files
author
Chad Chen
committed
fix: fix inconsistencies in technology section
- Fix category and permalink in technology posts - Use 'categories' instead of 'category' in front matter - Update permalinks to use /technology/ consistently - Fix article paths in navigation tutorial
1 parent ecafa65 commit 4fb47cc

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ include:
4848
header_pages:
4949
- _pages/index.md
5050
- _pages/news.md
51-
- _pages/tech.md
51+
- _pages/technology.md
5252
- _pages/tutorials.md
5353
- _pages/about.md
5454

_pages/tech.md renamed to _pages/technology.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: page
33
title: 技术分享
44
nav_title: 技术
55
nav_order: 2
6-
permalink: /tech/
6+
permalink: /technology/
77
---
88

99
{% for post in site.categories.Technology %}

_posts/technology/2023-01-17-change-avatar-by-ai.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
layout: post
33
title: "使用 AI 工具换新头像"
44
date: 2023-01-17 14:36:05 +0800
5-
category: Technology
5+
categories: Technology
66
tags:
77
- AI
88
- avatar
99
- tools
10-
permalink: /tech/change-avatar-by-ai/
10+
permalink: /technology/change-avatar-by-ai/
1111
---
1212

1313
给自己定了一个小目标:每年要换一个社交头像。

_posts/technology/2023-01-31-download-ebooks-from-kindle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tags:
88
- ePub
99
- tools
1010
- tutorial
11-
permalink: /tech/download-ebooks-from-kindle/
11+
permalink: /technology/download-ebooks-from-kindle/
1212
---
1313

1414
由于 Kindle 宣布 2023 年 06 月 30 日停止在中国电子书店的运营<sup>[1]</sup>,我想将购买的一些电子书下载存档。

_posts/tutorials/2025-01-13-optimize-jekyll-navigation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ your-site/
2020
├── _pages/ # 存放页面文件
2121
│ ├── about.markdown
2222
│ ├── news.md
23-
│ ├── tech.md
23+
│ ├── technology.md
2424
│ └── tutorials.md
2525
├── _posts/ # 按分类存放文章
2626
│ ├── news/
@@ -55,7 +55,7 @@ permalink: /url路径/ # 页面的永久链接
5555
header_pages:
5656
- _pages/news.md
5757
- index.md
58-
- _pages/tech.md
58+
- _pages/technology.md
5959
- _pages/tutorials.md
6060
- _pages/about.markdown
6161
```
@@ -75,15 +75,15 @@ tags: [标签1, 标签2] # 使用标签提供更细致的分类
7575

7676
### 2. 创建分类页面
7777

78-
为每个分类创建独立的页面,例如 `_pages/tech.md`
78+
为每个分类创建独立的页面,例如 `_pages/technology.md`
7979

8080
```liquid
8181
---
8282
layout: page
8383
title: Technology
8484
nav_title: Technology
8585
nav_order: 3
86-
permalink: /tech/
86+
permalink: /technology/
8787
---
8888
8989
{% raw %}{% for post in site.categories.Technology %}

0 commit comments

Comments
 (0)