Add Reading Time to your Micro.blog template
Eric Gregorich in
writes:I added Reading time to my blog. It was easy to do since it’s part of Hugo.
It is only displaying if the reading time exceeds 1 minute.
In the layouts/posts/single.html template, add the following line below the date (or where ever you want it to display).
{{ if gt .ReadingTime 1 }} Reading Time: {{ .ReadingTime }} minutes{{ end }}
Maybe I’ll add this as an optional feature in the Cards theme soon. 😋
16 December 2022