Don't enable reading time and word count by default

This commit is contained in:
BBaoVanC 2021-10-09 18:44:36 -05:00
parent 3242d892b5
commit 98587c94ae
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 10 additions and 5 deletions

View File

@ -29,7 +29,7 @@
margin-top: 5px; margin-top: 5px;
} }
.wordcount { .wordcount, .rss-link, .readingtime {
margin-left: 5px; margin-left: 5px;
} }
@ -41,10 +41,6 @@
white-space: nowrap; white-space: nowrap;
} }
.rss-link {
margin-left: 5px;
}
h1 svg.icon { h1 svg.icon {
width: 30px; width: 30px;
height: 30px; height: 30px;

View File

@ -17,10 +17,19 @@
{{ end }} {{ end }}
</span> </span>
{{ if .Site.Params.wordcount }}
<span class="wordcount"> <span class="wordcount">
{{ partial "icon.html" "type" }} {{ partial "icon.html" "type" }}
{{ .WordCount }} words {{ .WordCount }} words
</span> </span>
{{ end }}
{{ if .Site.Params.readingtime }}
<span class="readingtime">
{{ partial "icon.html" "clock" }}
{{ .ReadingTime }} {{ if gt .ReadingTime 1 }} mins {{ else }} min {{ end }}
</span>
{{ end }}
<div class="tags"> <div class="tags">
{{ range (.GetTerms "tags") }} {{ range (.GetTerms "tags") }}