From 9033266c2f02e570658a9505c26b7a438030f664 Mon Sep 17 00:00:00 2001 From: Keith Mo Date: Fri, 1 Jun 2018 00:06:14 +0800 Subject: feat(post): add out-of-date content warning (#68) --- exampleSite/config.toml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'exampleSite') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 98ac4fb..3c11c58 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -98,6 +98,15 @@ copyright = "" # default: author.name ↓ # 默认为下面配 gitmentCSS = '' gitalkJS = '' gitalkCSS = '' + timeagoJS = '' + timeagoLocalesJS = '' + + # Display a message at the beginning of an article to warn the readers that it's content may be outdated. + # 在文章开头显示提示信息,提醒读者文章内容可能过时。 + [params.outdatedInfoWarning] + enable = false + hint = 30 # Display hint if the last modified time is more than these days ago. # 如果文章最后更新于这天数之前,显示提醒 + warn = 180 # Display warning if the last modified time is more than these days ago. # 如果文章最后更新于这天数之前,显示警告 [params.gitment] # Gitment is a comment system based on GitHub issues. see https://github.com/imsun/gitment owner = "" # Your GitHub ID -- cgit v1.2.3