From e5dc445b22f5814c9997cdf873016e30ef20e80a Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 22 Aug 2020 13:25:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20example=20config.toml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exampleSite/config.toml | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 exampleSite/config.toml diff --git a/exampleSite/config.toml b/exampleSite/config.toml new file mode 100644 index 0000000..9e50cc0 --- /dev/null +++ b/exampleSite/config.toml @@ -0,0 +1,62 @@ +baseurl = "https://example.com/" +languageCode = "en-us" +theme = "hugo-theme-stack" +paginate = 5 + +[params] + twitter = "0xJimmy" + postSection = "post" + emoji = "🍥" + avatar = "img/avatar.jpg" + logo = "/avatar.jpg" + subtitle = "和世界分享刚编的破事" + postLicense = "Licenced under CC BY-NC-SA 4.0" + [params.widgets] + enabled = ['archive', 'tag-cloud'] + [params.widgets.tagCloud] + limit = 10 + +[menu] + [[menu.main]] + identifier = "home" + name = "首页" + url = "/" + weight = -100 + pre = "home" + [[menu.main]] + identifier = "about-cn" + name = "关于" + url = "/about/" + weight = -90 + pre = "user" + [[menu.main]] + identifier = "links" + name = "邻居" + url = "/links/" + weight = -80 + pre = "link" + [[menu.main]] + identifier = "archive" + name = "归档" + url = "/archive/" + weight = -70 + pre = "archive" + [[menu.main]] + identifier = "guestbook" + name = "留言板" + url = "/guestbook/" + weight = -60 + pre = "messages" + +[related] + includeNewer = true + threshold = 60 + toLower = false + + [[related.indices]] + name = "tags" + weight = 100 + + [[related.indices]] + name = "categories" + weight = 200 \ No newline at end of file