add reading time and word count to headings
This commit is contained in:
parent
072e8e223d
commit
46eb0bf137
|
@ -22,6 +22,11 @@
|
||||||
<p class="terms">
|
<p class="terms">
|
||||||
{{ partial "related.html" . }}
|
{{ partial "related.html" . }}
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
{{ if (gt .ReadingTime 0) }}<small>Reading Time: {{ .ReadingTime }} minutes</small>{{ end }}
|
||||||
|
|
|
||||||
|
{{ if (gt .WordCount 0) }}<small>Word Count: {{ .WordCount }} words</small>{{ end }}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ if .Params.toc }}
|
{{ if .Params.toc }}
|
||||||
|
|
Loading…
Reference in a new issue