diff --git a/exampleSite/config.toml b/exampleSite/config.toml index fad29cdd..d0f77dba 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -44,11 +44,13 @@ pygmentscodefencesguesssyntax = true [params] subTitle = "the site subtitle" # site's subTitle # 网站二级标题 footerSlogan = "My spiritual home" # site's footer slogan # 网站页脚标语 - keywords = ["Hugo","theme","zozo"] # site's keywords # 网站关键字 + keywords = ["Hugo","theme","zozo"] # site's keywords # 网站关键字 description = "Hugo theme zozo example site." # site's description # 网站描述 enableMathJax = true # enable mathjax # 是否使用mathjax(数学公式) enableSummary = true # display the article summary # 是否显示文章摘要 mainSections = ["posts","post"] + readingTime = true # display the reading time at the top of the post + # Valine. # You can get your appid and appkey from https://leancloud.cn diff --git a/i18n/en.yaml b/i18n/en.yaml index ff2fe86c..7a39a694 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1,8 +1,8 @@ prev_page: - other: "Prev" + other: "Previous Page" next_page: - other: "Next" + other: "Next Page" home: other: "Home" @@ -14,4 +14,8 @@ tags: other: "Tags" about: - other: "About" \ No newline at end of file + other: "About" + +postReadingTime: + one: "1 minute read" + other: "{{ .Count }} minute read" diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml index 98d3eb8d..903053a1 100644 --- a/i18n/zh-cn.yaml +++ b/i18n/zh-cn.yaml @@ -14,4 +14,8 @@ tags: other: "标签" about: - other: "关于" \ No newline at end of file + other: "关于" + +postReadingTime: + one: "1分钟阅读" + other: "{{ .Count }} 分钟阅读" diff --git a/layouts/_default/list.html b/layouts/_default/list.html index a436e287..e8d425b8 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,31 +1,31 @@ {{ partial "head.html" . }}
-