I added Reading time to my blog. It was easy to do since it’s part of Hugo.

It only displays if the reading time exceeds 1 minute. I think this makes sense because it will exclude it from short posts.

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 }}

This feature has been added to the Cards Theme, so all you need to do is enable it!