From eaa3a325e566cc084d30ba56f53ecb3f8e80d9ab Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Thu, 16 Apr 2020 15:34:39 +0800 Subject: i18n support --- exampleSite/config.toml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index fe8d9d7..0f43f56 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,11 +1,15 @@ baseURL = "https://example.com" title = "Fuji Demo" -languageCode = "zh-Hans" theme = "fuji" - hasCJKLanguage = true +enableEmoji = true disableKinds = ["RSS", "taxonomyTerm"] +## Change this two to switch between different language +## Now support: en, zh-hans, zh-hant, ja +defaultContentLanguage = "en" +languageCode = "en" + summaryLength = 100 # Custom cummary length, add in post file to custom split point paginate = 10 @@ -34,7 +38,7 @@ paginate = 10 scrollTop = true # License - license = "知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 (CC BY-NC-SA 4.0)" + license = "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0)" licenseLink = "http://creativecommons.org/licenses/by-nc-sa/4.0/" # Comments @@ -65,15 +69,15 @@ paginate = 10 [menu] [[menu.nav]] - name = "主页" + name = "Home" url = "/" weight = 1 [[menu.nav]] - name = "归档" + name = "Archives" url = "/archives/" weight = 2 [[menu.nav]] - name = "关于" + name = "About" url = "/about/" weight = 3 @@ -82,6 +86,6 @@ paginate = 10 url = "https://github.com/amzrk2" weight = 1 [[menu.link]] - name = "哔哩哔哩" + name = "bilibili" url = "https://space.bilibili.com/19767474" weight = 2 -- cgit v1.2.3