blog

My blog at www.shimmy1996.com

git clone git://git.shimmy1996.com/blog.git
commit b59a9e12399bd46253d9e456d599970ca312514a
parent d5234b096af03b4939844e20e8b2816b87a6c581
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Mon,  2 Dec 2019 09:31:05 -0500

Update config to be compatible with Hugo 0.60.0

Diffstat:
Mconfig.toml | 29+++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/config.toml b/config.toml
@@ -7,48 +7,49 @@ defaultContentLanguageInSubdir = true
 disableKinds                   = ["taxonomy", "taxonomyTerm"]
 disableHugoGeneratorInject     = true
 
-[Author]
+[author]
 name = "Shimmy Xu"
 
-[Blackfriday]
-smartypants = false
+[markup]
+  [markup.goldmark]
+    [markup.goldmark.renderer]
+      unsafe = true
+  [markup.highlight]
+    codeFences = false
 
 [params]
 soresuLatexOffByDefault = true
 soresuIssoHost = "/isso"
 
-[Permalinks]
 posts    = "/posts/:year-:month-:day-:slug/"
+[permalinks]
 
-[Languages]
-  [Languages.en]
+[languages]
+  [languages.en]
   languageName = "English"
   copyright    = "&copy; 2014-2019 [Shimmy Xu](/en/about/) | <a rel=\"me\" href=\"https://github.com/shimmy1996\">GitHub</a> | <a rel=\"me\" href=\"https://mstdn.shimmy1996.com/@shimmy1996\">Mastodon</a> | [Subscribe](/en/index.xml)"
   title        = "Library of Trantor"
 
-    [[Languages.en.menu.main]]
+    [[languages.en.menu.main]]
     name   = "Posts"
     url    = "/en/posts/"
     weight = 1
-    [[Languages.en.menu.main]]
+    [[languages.en.menu.main]]
     name   = "Friends"
     url    = "/en/friends/"
     weight = 2
 
-  [Languages.zh]
+  [languages.zh]
   languageName = "中文"
   copyright    = "&copy; 2014-2019 [Shimmy Xu](/zh/about/) | <a rel=\"me\" href=\"https://github.com/shimmy1996\">GitHub</a> | <a rel=\"me\" href=\"https://mstdn.shimmy1996.com/@shimmy1996\">Mastodon</a> | [订阅](/zh/index.xml)"
   title        = "川陀大学图书室"
 
-    [[Languages.zh.menu.main]]
+    [[languages.zh.menu.main]]
     name   = "归档"
     url    = "/zh/posts/"
     weight = 1
-    [[Languages.zh.menu.main]]
+    [[languages.zh.menu.main]]
     name   = "朋友们"
     url    = "/zh/friends/"
     weight = 2
 
-    [Languages.zh.Blackfriday]
-    extensions = ["joinLines"]
-    smartypants = false