blogamore/layouts/partials/meta/data.html

9 lines
461 B
HTML
Raw Permalink Normal View History

{{- $dateTime := .PublishDate.Format "2006-01-02" -}}
{{- $dateTimeMod := .Lastmod.Format "2006-01-02" -}}
{{- $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" -}}
2022-11-13 20:52:45 +01:00
<i data-feather="calendar"></i>
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
<i data-feather="user"></i>
{{- .Page.Params.Author -}}
2022-11-28 19:58:24 +01:00
<span class="badge bg-secondary"><time datetime="{{ $dateTimeMod }}">{{ .Lastmod.Format $dateFormat }}</time></span>