aboutsummaryrefslogtreecommitdiff
path: root/exampleSite
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-09-11 23:15:13 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-09-11 23:15:13 +0800
commit6879d8e3d3144086737542049d282a832240ebc8 (patch)
tree7e25206bbd9d92bdbc8c53d7ca34c0a52c47e258 /exampleSite
parent10eacc006661779a5bea51ff011080d535e8c446 (diff)
feat: config to show more post meta
word count and read time
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.toml5
-rw-r--r--exampleSite/data/even/default.toml4
2 files changed, 8 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index b7c3061..0ca7001 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -50,7 +50,10 @@ copyright = "" # default: author.name ↓ # 默认为下面配
# paginate of archives, tags and categories # 归档、标签、分类每页显示的文章数目
archive-paginate = 3
-
+
+ # show word count and read time ? # 是否显示字数统计与阅读时间
+ moreMeta = true
+
# 一些全局开关,你可以在每一篇内容的 front matter 中单独关闭某些选项
# Some global options, you can close something in front matter.
toc = true # 是否开启目录
diff --git a/exampleSite/data/even/default.toml b/exampleSite/data/even/default.toml
index 73619f4..f84f92f 100644
--- a/exampleSite/data/even/default.toml
+++ b/exampleSite/data/even/default.toml
@@ -16,6 +16,10 @@ categories = "Categories"
reward = "Reward"
seeMarkDown = "The Markdown version »"
+ [posts.header]
+ wordCount = "%d word"
+ readingTime = "%d min read"
+
[copyright]
author = "Author"
lastMod = "LastMod"