add reading time and word count to headings

This commit is contained in:
KemoNine 2023-03-20 17:02:06 -04:00
parent 072e8e223d
commit 46eb0bf137

View file

@ -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 }}
&nbsp;|&nbsp;
{{ if (gt .WordCount 0) }}<small>Word Count: {{ .WordCount }} words</small>{{ end }}
</p>
</div> </div>
{{ if .Params.toc }} {{ if .Params.toc }}