summaryrefslogtreecommitdiff
path: root/layouts/partials/pageinfo.html
blob: 2e5d2b911898ee53ea8844c427925fd7c939e65c4f6f216f341a3a8977e16b41 (plain)
1
2
{{ $dateFormat := .Site.Params.dateFormat | default ":date_long" -}}
{{ emojify ":calendar:" | safeHTML }} <time {{ printf "datetime=%q" (.Page.PublishDate | time.Format "2006-01-02T15:04:05-0700") | safeHTMLAttr }}>{{ .Page.PublishDate | time.Format $dateFormat | safeHTML }}</time> | {{ emojify ":stopwatch:" | safeHTML }} <time datetime="PT{{ .ReadingTime }}M">{{ i18n "readingTime" .ReadingTime | safeHTML }}</time>{{ if (.Param (lower (i18n "tags"))) }} | {{ emojify ":label:" | safeHTML }} {{ end }}{{ range $key, $val := (.Param (lower (i18n "tags"))) }}{{ if $key }}, {{ end }}<a class="link" href='{{ relLangURL (lower (i18n "tags")) }}/{{ . | urlize }}/' rel="noreferrer">{{ $val }}</a>{{ end }}