congo/layouts/partials/article-meta.html

19 lines
579 B
HTML

{{ if .Site.Params.article.showDate | default true }}
<time datetime="{{ .Date }}">
{{ .Date.Format .Site.Params.article.dateFormat | default "2 January 2006" }}
</time>
{{ end }}
{{ if and
(.Site.Params.article.showDate | default true)
(.Site.Params.article.showReadingTime | default true)
(ne .ReadingTime 0)
}}
<span class="px-1">&middot;</span>
{{ end }}
{{ if and (.Site.Params.article.showReadingTime | default true) (ne .ReadingTime 0) }}
<span title="Reading time">
{{ .ReadingTime }}
min{{ if gt .ReadingTime 1 }}s{{ end }}
</span>
{{ end }}