From 6879d8e3d3144086737542049d282a832240ebc8 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Mon, 11 Sep 2017 23:15:13 +0800 Subject: feat: config to show more post meta word count and read time --- exampleSite/config.toml | 5 ++++- exampleSite/data/even/default.toml | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'exampleSite') 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" -- cgit v1.2.3