blogamore/layouts/partials/meta/data.html

8 lines
461 B
HTML

{{- $dateTime := .PublishDate.Format "2006-01-02" -}}
{{- $dateTimeMod := .Lastmod.Format "2006-01-02" -}}
{{- $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" -}}
<i data-feather="calendar"></i>
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
<i data-feather="user"></i>
{{- .Page.Params.Author -}}
<span class="badge bg-secondary"><time datetime="{{ $dateTimeMod }}">{{ .Lastmod.Format $dateFormat }}</time></span>