mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-22 03:42:53 +00:00
patch for 'showReadingTime' config option
This commit is contained in:
parent
964f596fe6
commit
dea5dbc0f7
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="post-data">
|
<div class="post-data">
|
||||||
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} |{{ end }}
|
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }}
|
||||||
{{ i18n "blog_readingTime" .ReadingTime }}
|
{{ if .Site.Params.showReadingTime }} | {{ i18n "blog_readingTime" .ReadingTime }} {{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ if or .Site.Params.share.twitter .Site.Params.share.facebook .Site.Params.share.pinterest .Site.Params.share.googlePlus }}
|
{{ if or .Site.Params.share.twitter .Site.Params.share.facebook .Site.Params.share.pinterest .Site.Params.share.googlePlus }}
|
||||||
<div class="blog-share">
|
<div class="blog-share">
|
||||||
|
|
Loading…
Reference in a new issue