fixing the default behaviour for showReadingTime

This commit is contained in:
bugrasan 2022-02-01 01:51:46 +00:00 committed by GitHub
parent dea5dbc0f7
commit 18f2b09a7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,10 @@
</h2>
<div class="post-data">
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }}
{{ if .Site.Params.showReadingTime }} | {{ i18n "blog_readingTime" .ReadingTime }} {{ end }}
{{ if .Site.Params.showReadingTime | default true }}
{{ if .Params.date }} | {{ end }}
{{ i18n "blog_readingTime" .ReadingTime }}
{{ end }}
</div>
{{ if or .Site.Params.share.twitter .Site.Params.share.facebook .Site.Params.share.pinterest .Site.Params.share.googlePlus }}
<div class="blog-share">