Readingtime - location

Hi,

I have just set-up my first hugo blog, and I’m enjoying it so far! :slight_smile: I’d like to have the .ReadingTime functionality on my blog-site (on my main page ideally). I’ve tried to put the .ReadingTime in my front-end archetype file, but it doesn’t seem to work. I can’t seem to figure out if i need to put .ReadingTime within a post, or within a partial. I’m sure it’s something simple, and easy that I’m missing!
Many thanks in advance!

James

Hi @jamesth. You don’t need to change your archetype in order to do this. Instead, try adding something like this in your post single template file:

{{ .ReadingTime }} mins
1 Like

Thank you! That did the trick! :slight_smile:

For anyone else’s future reference, then you’ll need to update: /layout/partials/post_list.html
With: {{ .ReadingTime }} mins