2023-01-30 13:14:33 -06:00
|
|
|
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
|
2023-07-20 21:43:46 -05:00
|
|
|
{{ $lastmodTime := .Lastmod.Format "2006-01-02" }}
|
2023-01-30 13:14:33 -06:00
|
|
|
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
|
|
|
|
<i data-feather="calendar"></i>
|
|
|
|
{{ if .PublishDate }}
|
2023-07-20 21:43:46 -05:00
|
|
|
{{ if and (ne $lastmodTime $dateTime) (gt .Lastmod .Date) }}
|
|
|
|
<time datetime="{{ $lastmodTime }}">{{ .Lastmod.Format $dateFormat }}</time>
|
|
|
|
(first posted <time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>)
|
|
|
|
{{ else }}
|
2023-01-30 13:14:33 -06:00
|
|
|
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
|
|
|
|
{{ end }}
|
2023-07-20 21:43:46 -05:00
|
|
|
{{ end }}
|
2023-01-30 13:14:33 -06:00
|
|
|
{{ with .Params.tags }}
|
|
|
|
<i data-feather="tag"></i>
|
|
|
|
{{ range . }}
|
2023-02-23 14:01:33 -06:00
|
|
|
{{ $href := print "/tags/" (urlize .) }}
|
2023-01-30 13:14:33 -06:00
|
|
|
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
|
|
|
|
{{ end }}
|
2023-02-23 14:01:33 -06:00
|
|
|
{{ end }}
|