aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2020-10-11 15:23:34 -0500
committerYihui Xie <xie@yihui.name>2020-10-11 15:23:34 -0500
commit64cd50c06f39de57a6078d2f7e730cdb8673d361 (patch)
tree466ff79ada641faa48360e0597513924e2ec7867
parenta375ee671f617376fbc1a410215aac21a06d633a (diff)
downloadzk-theme-64cd50c06f39de57a6078d2f7e730cdb8673d361.tar.gz
zk-theme-64cd50c06f39de57a6078d2f7e730cdb8673d361.zip
change config.toml to config.yaml
-rw-r--r--exampleSite/config.toml41
-rw-r--r--exampleSite/config.yaml38
2 files changed, 38 insertions, 41 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
deleted file mode 100644
index a2726d4..0000000
--- a/exampleSite/config.toml
+++ /dev/null
@@ -1,41 +0,0 @@
-baseurl = "/"
-languageCode = "en-us"
-title = "A minimal Hugo website"
-theme = "hugo-xmin"
-googleAnalytics = ""
-disqusShortname = ""
-ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_cache$", "\\.knit\\.md$", "\\.utf8\\.md$"]
-footnotereturnlinkcontents = "↩"
-
-[permalinks]
- post = "/post/:year/:month/:day/:slug/"
- note = "/note/:year/:month/:day/:slug/"
-
-[[menu.main]]
- name = "Home"
- url = "/"
- weight = 1
-[[menu.main]]
- name = "About"
- url = "/about/"
- weight = 2
-[[menu.main]]
- name = "Categories"
- url = "/categories/"
- weight = 3
-[[menu.main]]
- name = "Tags"
- url = "/tags/"
- weight = 4
-[[menu.main]]
- name = "Subscribe"
- url = "/index.xml"
-
-[params]
- description = "A website built through Hugo and blogdown."
- footer = "&copy; [Yihui Xie](https://yihui.org) 2017 -- 2020 | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)"
-
-[markup]
- [markup.goldmark]
- [markup.goldmark.renderer]
- unsafe = true
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
new file mode 100644
index 0000000..8875342
--- /dev/null
+++ b/exampleSite/config.yaml
@@ -0,0 +1,38 @@
+baseurl: "/"
+languageCode: "en-us"
+title: "A minimal Hugo website"
+theme: "hugo-xmin"
+googleAnalytics: ""
+disqusShortname: ""
+ignoreFiles: ["\\.Rmd$", "\\.Rmarkdown$", "_cache$", "\\.knit\\.md$", "\\.utf8\\.md$"]
+footnotereturnlinkcontents: "↩"
+
+permalinks:
+ note: "/note/:year/:month/:day/:slug/"
+ post: "/post/:year/:month/:day/:slug/"
+
+menu:
+ main:
+ - name: Home
+ url: /
+ weight: 1
+ - name: About
+ url: /about/
+ weight: 2
+ - name: Categories
+ url: /categories/
+ weight: 3
+ - name: Tags
+ url: /tags/
+ weight: 4
+ - name: Subscribe
+ url: /index.xml
+
+params:
+ description: "A website built through Hugo and blogdown."
+ footer: "&copy; [Yihui Xie](https://yihui.org) 2017 -- 2020 | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)"
+
+markup:
+ goldmark:
+ renderer:
+ unsafe: true