I am new to hugo. I am creating a custom theme, where in I want to add “X minutes read” feature. To do this I have decided to go ahead with the empirical rule of dividing the number of words in the post by 200(average words read by a person in minute).
Now, I need to know the number of words in a post. In my single.html I can access the post using .Content but now can I get the number of words in it?
Also, it would be much helpful if someone can point me to the documentation what all can be read from the scope of a post?
Thanks.