Make word count and reading time enabled by default

This commit is contained in:
BBaoVanC 2021-10-22 23:05:51 -05:00
parent ffbfc842c2
commit 7749ff39fa
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ enableGitInfo = true
faviconICO = "/favicon.ico"
faviconPNG = "/favicon.png"
# show word count and/or reading time
# show word count and/or reading time (enabled by default)
wordcount = true
readingtime = true

View File

@ -29,14 +29,14 @@
</span>
{{ end }}
{{ if .Site.Params.wordcount }}
{{ if ne .Site.Params.wordcount false }}
<span class="post-meta-item">
{{ partial "icon.html" "type" }}
{{ i18n "wordcount" .WordCount }}
</span>
{{ end }}
{{ if .Site.Params.readingtime }}
{{ if ne .Site.Params.readingtime false }}
<span class="post-meta-item">
{{ partial "icon.html" "clock" }}
{{ i18n "readingtime" .ReadingTime }}