Closed switchswap closed 3 years ago
This looks cool but it has a minor bug, if you set post category this happens.
Was fixed for me by putting the time read block before category block in. `{{ $showReadTime := .Site.Params.showReadTime | default false }} {{if $showReadTime}}
{{ end }}
{{ if gt .Params.categories 0 }}
<div class="article-category">`
Oh, whoops! Thanks for catching that! I'll fix it up right away!
This issue should be fixed with that lastest commit. :)
I added read-time to posts and made it configurable!
Here's a picture of it in action on the dark theme (thought it works on all themes):
It's also configurable via the config with a new boolean setting,
showReadTime
, which I've set to default as false.I updated the sample config in
exampleTheme
to reflect this as well.