mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-22 06:32:53 +00:00
Merge branch 'showReadingTime' of https://github.com/bugrasan/hugo-theme-introduction into bugrasan-showReadingTime
This commit is contained in:
commit
0d75cfe09f
1 changed files with 5 additions and 2 deletions
|
@ -10,8 +10,11 @@
|
|||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
</h2>
|
||||
<div class="post-data">
|
||||
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} |{{ end }}
|
||||
{{ i18n "blog_readingTime" .ReadingTime }}
|
||||
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ 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 }}
|
||||
<div class="blog-share">
|
||||
|
|
Loading…
Reference in a new issue