2021-08-16 04:05:46 +00:00
|
|
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
2021-08-14 04:44:34 +00:00
|
|
|
<time datetime="{{ .Date }}">
|
|
|
|
{{ .Date.Format .Site.Params.article.dateFormat | default "2 January 2006" }}
|
|
|
|
</time>
|
|
|
|
{{ end }}
|
|
|
|
{{ if and
|
2021-08-16 04:05:46 +00:00
|
|
|
(.Params.showDate | default (.Site.Params.article.showDate | default true))
|
|
|
|
(.Params.showReadingTime | default (.Site.Params.article.showReadingTime | default true))
|
2021-08-14 04:44:34 +00:00
|
|
|
(ne .ReadingTime 0)
|
|
|
|
}}
|
|
|
|
<span class="px-1">·</span>
|
|
|
|
{{ end }}
|
2021-08-16 04:05:46 +00:00
|
|
|
{{ if and (.Params.showReadingTime | default (.Site.Params.article.showReadingTime | default true)) (ne .ReadingTime 0) }}
|
2021-08-14 04:44:34 +00:00
|
|
|
<span title="Reading time">
|
|
|
|
{{ .ReadingTime }}
|
|
|
|
min{{ if gt .ReadingTime 1 }}s{{ end }}
|
|
|
|
</span>
|
|
|
|
{{ end }}
|