diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-16 22:50:22 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-16 22:50:22 +0800 |
| commit | f673c0a934ee27d671b42dcd6904225d066633b7 (patch) | |
| tree | b7ace441990a7ee636b3e5ac4fb64fae2098cb3d | |
| parent | c5d8f6b17b2e4805f3790af952a0ffcc31b41c00 (diff) | |
feat: add icon to each category
Former-commit-id: 039f7f02e0baf2916e5776eb54ee3c9952cf24f9
| -rw-r--r-- | content/categories/game++/_index.md | 1 | ||||
| -rw-r--r-- | content/categories/人类恶疾/_index.md | 4 | ||||
| -rw-r--r-- | content/categories/塔罗牌漫谈/_index.md | 4 | ||||
| -rw-r--r-- | content/categories/年终总结/_index.md | 4 | ||||
| -rw-r--r-- | content/categories/掏心/_index.md | 4 | ||||
| -rw-r--r-- | content/categories/揽物日志/_index.md | 4 | ||||
| -rw-r--r-- | content/categories/猫头鹰化石/_index.md | 4 | ||||
| -rw-r--r-- | content/categories/生产力报告/_index.md | 4 | ||||
| -rw-r--r-- | content/categories/稻草人周刊/_index.md | 1 | ||||
| -rw-r--r-- | content/categories/艺术脑袋/_index.md | 4 | ||||
| -rw-r--r-- | content/categories/诗意发作/_index.md | 4 | ||||
| -rw-r--r-- | layouts/_default/taxonomy.html | 6 |
12 files changed, 43 insertions, 1 deletions
diff --git a/content/categories/game++/_index.md b/content/categories/game++/_index.md index df520d0a..b79c9f15 100644 --- a/content/categories/game++/_index.md +++ b/content/categories/game++/_index.md @@ -1,5 +1,6 @@ --- title: Game++ +icon: 🕹️ aliases: - "Game++" --- diff --git a/content/categories/人类恶疾/_index.md b/content/categories/人类恶疾/_index.md new file mode 100644 index 00000000..7b4baaa9 --- /dev/null +++ b/content/categories/人类恶疾/_index.md @@ -0,0 +1,4 @@ +--- +title: 人类恶疾 +icon: ☠️ +--- diff --git a/content/categories/塔罗牌漫谈/_index.md b/content/categories/塔罗牌漫谈/_index.md new file mode 100644 index 00000000..925bbb11 --- /dev/null +++ b/content/categories/塔罗牌漫谈/_index.md @@ -0,0 +1,4 @@ +--- +title: 塔罗牌漫谈 +icon: ☪️ +--- diff --git a/content/categories/年终总结/_index.md b/content/categories/年终总结/_index.md new file mode 100644 index 00000000..da3e7283 --- /dev/null +++ b/content/categories/年终总结/_index.md @@ -0,0 +1,4 @@ +--- +title: 年终总结 +icon: 👣 +--- diff --git a/content/categories/掏心/_index.md b/content/categories/掏心/_index.md new file mode 100644 index 00000000..6aff082a --- /dev/null +++ b/content/categories/掏心/_index.md @@ -0,0 +1,4 @@ +--- +title: 掏心 +icon: 🫀 +--- diff --git a/content/categories/揽物日志/_index.md b/content/categories/揽物日志/_index.md new file mode 100644 index 00000000..d8bd25d7 --- /dev/null +++ b/content/categories/揽物日志/_index.md @@ -0,0 +1,4 @@ +--- +title: 揽物日志 +icon: 🪀 +--- diff --git a/content/categories/猫头鹰化石/_index.md b/content/categories/猫头鹰化石/_index.md new file mode 100644 index 00000000..456bbc6a --- /dev/null +++ b/content/categories/猫头鹰化石/_index.md @@ -0,0 +1,4 @@ +--- +title: 猫头鹰化石 +icon: 🦉 +--- diff --git a/content/categories/生产力报告/_index.md b/content/categories/生产力报告/_index.md new file mode 100644 index 00000000..a16f1275 --- /dev/null +++ b/content/categories/生产力报告/_index.md @@ -0,0 +1,4 @@ +--- +title: 生产力报告 +icon: 📊 +--- diff --git a/content/categories/稻草人周刊/_index.md b/content/categories/稻草人周刊/_index.md index dbd5d8e3..cb207bcc 100644 --- a/content/categories/稻草人周刊/_index.md +++ b/content/categories/稻草人周刊/_index.md @@ -1,4 +1,5 @@ --- title: 稻草人周刊 description: 一个读者的自述,每周一更新。 +icon: 🎃 --- diff --git a/content/categories/艺术脑袋/_index.md b/content/categories/艺术脑袋/_index.md new file mode 100644 index 00000000..a1b4485e --- /dev/null +++ b/content/categories/艺术脑袋/_index.md @@ -0,0 +1,4 @@ +--- +title: 艺术脑袋 +icon: 🧠 +--- diff --git a/content/categories/诗意发作/_index.md b/content/categories/诗意发作/_index.md new file mode 100644 index 00000000..6cfd84ea --- /dev/null +++ b/content/categories/诗意发作/_index.md @@ -0,0 +1,4 @@ +--- +title: 诗意发作 +icon: 👁️🗨️ +--- diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 5e0dbdeb..adcb29c2 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -21,7 +21,11 @@ <section class="taxonomy taxonomy-categories row"> {{ range .Site.Taxonomies.categories.Alphabetical }} <div class="taxonomy-categories-item col-xs-12 col-sm-6"> - <h3><a href="{{ .Page.RelPermalink }}">{{ .Page.LinkTitle }}</a></h3> + <h3> + <a href="{{ .Page.RelPermalink }}"> + {{ with .Page.Params.icon }}<span>{{ . }}</span>{{ end }} {{ .Page.LinkTitle }} + </a> + </h3> <ul class="category-articles"> {{ range first 3 .Pages }} <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> |
