mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Make word count and reading time enabled by default
This commit is contained in:
parent
ffbfc842c2
commit
7749ff39fa
@ -20,7 +20,7 @@ enableGitInfo = true
|
|||||||
faviconICO = "/favicon.ico"
|
faviconICO = "/favicon.ico"
|
||||||
faviconPNG = "/favicon.png"
|
faviconPNG = "/favicon.png"
|
||||||
|
|
||||||
# show word count and/or reading time
|
# show word count and/or reading time (enabled by default)
|
||||||
wordcount = true
|
wordcount = true
|
||||||
readingtime = true
|
readingtime = true
|
||||||
|
|
||||||
|
@ -29,14 +29,14 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.wordcount }}
|
{{ if ne .Site.Params.wordcount false }}
|
||||||
<span class="post-meta-item">
|
<span class="post-meta-item">
|
||||||
{{ partial "icon.html" "type" }}
|
{{ partial "icon.html" "type" }}
|
||||||
{{ i18n "wordcount" .WordCount }}
|
{{ i18n "wordcount" .WordCount }}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.readingtime }}
|
{{ if ne .Site.Params.readingtime false }}
|
||||||
<span class="post-meta-item">
|
<span class="post-meta-item">
|
||||||
{{ partial "icon.html" "clock" }}
|
{{ partial "icon.html" "clock" }}
|
||||||
{{ i18n "readingtime" .ReadingTime }}
|
{{ i18n "readingtime" .ReadingTime }}
|
||||||
|
Loading…
Reference in New Issue
Block a user