summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hugo.toml59
-rw-r--r--hugo.yaml50
2 files changed, 50 insertions, 59 deletions
diff --git a/hugo.toml b/hugo.toml
deleted file mode 100644
index 90f9595a..00000000
--- a/hugo.toml
+++ /dev/null
@@ -1,59 +0,0 @@
-baseURL = 'https://geedea.pro/'
-languageCode = 'zh-cn'
-title = '極客死亡計劃'
-timeZone = "Asia/Shanghai"
-hasCJKLanguage = true
-
-[markup]
- [markup.goldmark]
- [markup.goldmark.renderer]
- unsafe = true
- [markup.highlight]
- guessSyntax = true
- noClasses = true
- style = "bw"
- tabWidth = 2
-
-[params]
-headTitle = "極客死亡計劃"
-mainSections = ["posts"]
-favicon = "/favicon.png"
-
-extraCSSFiles = [
- 'https://unpkg.com/@fancyapps/ui@5.0.36/dist/fancybox/fancybox.css',
- 'https://unpkg.com/@waline/client@v3/dist/waline.css'
-]
-externalJSFIles = [
- 'https://unpkg.com/swup@4',
- 'https://unpkg.com/tocbot@4.32.2/dist/tocbot.min.js',
- 'https://unpkg.com/vanilla-lazyload@19.1.3/dist/lazyload.min.js',
- 'https://unpkg.com/@fancyapps/ui@5.0.36/dist/fancybox/fancybox.umd.js'
-]
-
-[[params.nav]]
-name = "关于"
-link = "/about/"
-target = "_self"
-
-[[params.nav]]
-name = "分类"
-link = "/categories/"
-target = "_self"
-
-[[params.nav]]
-name = "链接"
-link = "/links/"
-target = "_self"
-
-[services]
- [services.rss]
- limit = 10
-
-[outputs]
- home = ["HTML", "calheatmap", "RSS"]
-
-[outputFormats]
-[outputFormats.calheatmap]
- mediaType = "application/json"
- baseName = "cal-heatmap"
- isPlainText = true
diff --git a/hugo.yaml b/hugo.yaml
new file mode 100644
index 00000000..eb54b0f2
--- /dev/null
+++ b/hugo.yaml
@@ -0,0 +1,50 @@
+baseURL: https://geedea.pro/
+languageCode: zh-cn
+title: 極客死亡計劃
+timeZone: Asia/Shanghai
+hasCJKLanguage: true
+markup:
+ goldmark:
+ renderer:
+ unsafe: true
+ highlight:
+ guessSyntax: true
+ noClasses: true
+ style: bw
+ tabWidth: 2
+params:
+ headTitle: 極客死亡計劃
+ mainSections:
+ - posts
+ favicon: /favicon.png
+ extraCSSFiles:
+ - https://unpkg.com/@fancyapps/ui@5.0.36/dist/fancybox/fancybox.css
+ - https://unpkg.com/@waline/client@v3/dist/waline.css
+ externalJSFIles:
+ - https://unpkg.com/swup@4
+ - https://unpkg.com/tocbot@4.32.2/dist/tocbot.min.js
+ - https://unpkg.com/vanilla-lazyload@19.1.3/dist/lazyload.min.js
+ - https://unpkg.com/@fancyapps/ui@5.0.36/dist/fancybox/fancybox.umd.js
+ nav:
+ - name: 关于
+ link: /about/
+ target: _self
+ - name: 分类
+ link: /categories/
+ target: _self
+ - name: 链接
+ link: /links/
+ target: _self
+services:
+ rss:
+ limit: 10
+outputs:
+ home:
+ - HTML
+ - calheatmap
+ - RSS
+outputFormats:
+ calheatmap:
+ mediaType: application/json
+ baseName: cal-heatmap
+ isPlainText: true