summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-05-09 11:13:35 +0800
committerEltrac <hi@guhub.cn>2025-05-09 11:13:35 +0800
commit5a8e2bfb3f63de51c36af989381f55e4b288cc98 (patch)
treeaa542a85772cd9963f40605f8e59f9f1f2ebdae7
parent151998b6821409e89638443a6b5344537ca7ffe0 (diff)
refactor: separate config files
Former-commit-id: 85eb4a560b4143abcf38588592ba915581f7877b
-rw-r--r--config/_default/config.yaml34
-rw-r--r--config/_default/languages.yaml60
-rw-r--r--config/_default/params.yaml37
-rw-r--r--hugo.yaml135
4 files changed, 131 insertions, 135 deletions
diff --git a/config/_default/config.yaml b/config/_default/config.yaml
new file mode 100644
index 00000000..adb397db
--- /dev/null
+++ b/config/_default/config.yaml
@@ -0,0 +1,34 @@
+baseURL: https://geedea.pro/
+timeZone: Asia/Shanghai
+hasCJKLanguage: true
+defaultContentLanguage: zh
+defaultContentLanguageInSubdir: true
+
+markup:
+ goldmark:
+ renderer:
+ unsafe: true
+ extensions:
+ extras:
+ mark:
+ enable: true
+ highlight:
+ guessSyntax: true
+ noClasses: true
+ style: catppuccin-macchiato
+ tabWidth: 2
+
+services:
+ rss:
+ limit: 10
+outputs:
+ home:
+ - HTML
+ - calheatmap
+ - RSS
+outputFormats:
+ calheatmap:
+ mediaType: application/json
+ baseName: cal-heatmap
+ isPlainText: true
+ permalinkable: true
diff --git a/config/_default/languages.yaml b/config/_default/languages.yaml
new file mode 100644
index 00000000..f2a6baaa
--- /dev/null
+++ b/config/_default/languages.yaml
@@ -0,0 +1,60 @@
+zh:
+ contentDir: content
+ defaultContentLanguageInSubdir: false
+ disabled: false
+ languageCode: zh-CN
+ languageDirection: ltr
+ languageName: 简体中文
+ params:
+ headTitle: 極客死亡計劃
+ nav:
+ - name: 议叙
+ link: /posts/
+ target: _self
+ - name: 卡片
+ link: /cards/
+ target: _self
+ - name: 书目
+ link: /library/
+ target: _self
+ - name: 假想
+ link: /fictions/
+ target: _self
+ - 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: 个人化的信息整合,每周一更新
+ title: 極客死亡計劃
+ weight: 1
+en:
+ contentDir: content/en
+ disabled: false
+ languageCode: en-US
+ languageDirection: ltr
+ languageName: English
+ params:
+ headTitle: Geek Death Project
+ nav:
+ - name: /about
+ link: /en/about/
+ target: _self
+ # - name: /categories
+ # link: /en/categories/
+ # target: _self
+ - name: /blogroll
+ link: /en/blogroll/
+ target: _self
+ title: Geek Death Project
+ weight: 2
diff --git a/config/_default/params.yaml b/config/_default/params.yaml
new file mode 100644
index 00000000..1969b5a1
--- /dev/null
+++ b/config/_default/params.yaml
@@ -0,0 +1,37 @@
+author: Eltrac
+mainSections:
+ - posts
+ - fictions
+ - library
+favicon: /favicon.png
+extraCSSFiles:
+ - /pagefind/pagefind-ui.css
+externalJSFIles:
+ - /js/littlefoot.js
+ - /pagefind/pagefind-ui.js
+footerExternalLinks:
+ - name: GitHub
+ link: https://github.com/BigCoke233/geek-death-project
+ icon: https://image.guhub.cn/uPic/2025/01/NqL5b5.png
+ - name: BLOGS·CN
+ link: https://blogscn.fun/
+ icon: https://photo.xiangming.site/img/blogscn_icon.png
+ - name: Travelling
+ link: https://www.travellings.cn/go.html
+ icon: https://www.travellings.cn/assets/favicon.png
+footerInternalLinks:
+ - name: blogroll
+ link: /blogroll/
+ - name: about
+ link: /about/
+giscus:
+ repo: BigCoke233/geek-death-project
+ repoId: R_kgDONPoyVw
+ category: General
+ categoryId: DIC_kwDONPoyV84Clumc
+ mapping: og:title
+ strict: 1
+ reactionsEnabled: 0
+ emitMetadata: 0
+ inputPosition: top
+ theme: "https://www.geedea.pro/css/giscus_noborder.css"
diff --git a/hugo.yaml b/hugo.yaml
deleted file mode 100644
index 82fc67eb..00000000
--- a/hugo.yaml
+++ /dev/null
@@ -1,135 +0,0 @@
-baseURL: https://geedea.pro/
-timeZone: Asia/Shanghai
-
-hasCJKLanguage: true
-defaultContentLanguage: zh
-defaultContentLanguageInSubdir: true
-languages:
- zh:
- contentDir: content
- defaultContentLanguageInSubdir: false
- disabled: false
- languageCode: zh-CN
- languageDirection: ltr
- languageName: 简体中文
- params:
- headTitle: 極客死亡計劃
- nav:
- - name: 议叙
- link: /posts/
- target: _self
- - name: 卡片
- link: /cards/
- target: _self
- - name: 书目
- link: /library/
- target: _self
- - name: 假想
- link: /fictions/
- target: _self
- - 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: 个人化的信息整合,每周一更新
- title: 極客死亡計劃
- weight: 1
-
- en:
- contentDir: content/en
- disabled: false
- languageCode: en-US
- languageDirection: ltr
- languageName: English
- params:
- headTitle: Geek Death Project
- nav:
- - name: /about
- link: /en/about/
- target: _self
- # - name: /categories
- # link: /en/categories/
- # target: _self
- - name: /blogroll
- link: /en/blogroll/
- target: _self
- title: Geek Death Project
- weight: 2
-
-markup:
- goldmark:
- renderer:
- unsafe: true
- extensions:
- extras:
- mark:
- enable: true
- highlight:
- guessSyntax: true
- noClasses: true
- style: catppuccin-macchiato
- tabWidth: 2
-
-params:
- author: Eltrac
- mainSections:
- - posts
- - fictions
- - library
- favicon: /favicon.png
- extraCSSFiles:
- - /pagefind/pagefind-ui.css
- externalJSFIles:
- - /js/littlefoot.js
- - /pagefind/pagefind-ui.js
- footerExternalLinks:
- - name: GitHub
- link: https://github.com/BigCoke233/geek-death-project
- icon: https://image.guhub.cn/uPic/2025/01/NqL5b5.png
- - name: BLOGS·CN
- link: https://blogscn.fun/
- icon: https://photo.xiangming.site/img/blogscn_icon.png
- - name: Travelling
- link: https://www.travellings.cn/go.html
- icon: https://www.travellings.cn/assets/favicon.png
- footerInternalLinks:
- - name: blogroll
- link: /blogroll/
- - name: about
- link: /about/
- giscus:
- repo: BigCoke233/geek-death-project
- repoId: R_kgDONPoyVw
- category: General
- categoryId: DIC_kwDONPoyV84Clumc
- mapping: og:title
- strict: 1
- reactionsEnabled: 0
- emitMetadata: 0
- inputPosition: top
- theme: "https://www.geedea.pro/css/giscus_noborder.css"
-services:
- rss:
- limit: 10
-outputs:
- home:
- - HTML
- - calheatmap
- - RSS
-outputFormats:
- calheatmap:
- mediaType: application/json
- baseName: cal-heatmap
- isPlainText: true
- permalinkable: true