reading time is not displayed
Opened this issue · 2 comments
peranti commented
Hi Yoshi,
Is there any change in the usage of readingTime
parameter in config.toml for displaying the reading time of the posts?
[params]
# Shown in the home page
dateFormat = "02 Jan 2006, 15:04"
# Show estimated reading time for posts?
readingTime = true
The above configuration is not working.
PS: The issue has already mentioned on StackOverflow.
dwy6626 commented
You need to add it to your template. In this theme I recommend to add it to layouts/partials/post_meta.html
Maybe you can try this:
{{ if .Site.Params.ReadingTime }}
<div>
<i class="fas fa-clock"></i>
{{ .ReadingTime }} min
</div>
{{ end }}