From 62ed367ebeb8b1382632417bee29e6f66a2fb477 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Sun, 29 Jun 2025 10:15:47 +0800 Subject: =?UTF-8?q?=F0=9F=9A=9A=20refactor:=20move=20series=20data=20from?= =?UTF-8?q?=20config=20to=20JSON?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/_default/languages.yaml | 13 ------------- data/series.json | 20 ++++++++++++++++++++ layouts/categories/taxonomy.html | 2 +- 3 files changed, 21 insertions(+), 14 deletions(-) create mode 100644 data/series.json diff --git a/config/_default/languages.yaml b/config/_default/languages.yaml index 67d79a52..76af7882 100644 --- a/config/_default/languages.yaml +++ b/config/_default/languages.yaml @@ -23,19 +23,6 @@ zh: - name: 自述 link: /about/ target: _self - series: - - name: 人类恶疾 - link: /categories/人类恶疾/ - cover: https://image.guhub.cn/uPic/2025/01/%E4%BA%BA%E7%B1%BB%E6%81%B6%E7%96%BE.jpeg - description: 尝试以非专业的病理视角分析人类行为 - - name: 塔罗牌漫谈 - link: /categories/塔罗牌漫谈/ - cover: https://image.guhub.cn/uPic/2025/01/%E5%A1%94%E7%BD%97%E7%89%8C%E6%BC%AB%E8%B0%88%E5%B0%81%E9%9D%A2.jpeg - description: 随便聊聊牌意 - - name: 稻草人周刊 - link: /categories/稻草人周刊/ - cover: https://image.guhub.cn/uPic/2025/01/%E7%A8%BB%E8%8D%89%E4%BA%BA%E5%91%A8%E5%88%8A.jpeg - description: 个人化的信息整合,每周一更新 footerInternalLinks: - name: 林卷 link: /linkroll/ diff --git a/data/series.json b/data/series.json new file mode 100644 index 00000000..cd2d8bde --- /dev/null +++ b/data/series.json @@ -0,0 +1,20 @@ +[ + { + "name": "人类恶疾", + "link": "/categories/人类恶疾/", + "cover": "https://image.guhub.cn/uPic/2025/01/%E4%BA%BA%E7%B1%BB%E6%81%B6%E7%96%BE.jpeg", + "description": "尝试以非专业的病理视角分析人类行为" + }, + { + "name": "塔罗牌漫谈", + "link": "/categories/塔罗牌漫谈/", + "cover": "https://image.guhub.cn/uPic/2025/01/%E5%A1%94%E7%BD%97%E7%89%8C%E6%BC%AB%E8%B0%88%E5%B0%81%E9%9D%A2.jpeg", + "description": "随便聊聊牌意" + }, + { + "name": "稻草人周刊", + "link": "/categories/稻草人周刊/", + "cover": "https://image.guhub.cn/uPic/2025/01/%E7%A8%BB%E8%8D%89%E4%BA%BA%E5%91%A8%E5%88%8A.jpeg", + "description": "个人化的信息整合,每周一更新" + } +] diff --git a/layouts/categories/taxonomy.html b/layouts/categories/taxonomy.html index 38b96fdc..27ac35ff 100644 --- a/layouts/categories/taxonomy.html +++ b/layouts/categories/taxonomy.html @@ -7,7 +7,7 @@ {{ if eq .Site.Language.Lang "zh" }}
- {{ range .Site.Params.series }} + {{ range .Site.Data.series }}