defiance-ng/layouts/partials/metadata.html

12 lines
392 B
HTML
Raw Normal View History

2022-07-20 14:57:54 -07:00
{{ if .PublishDate }}
2022-07-20 14:27:20 -07:00
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
2022-09-10 16:03:29 -07:00
<p><time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time></p>
2022-07-20 14:57:54 -07:00
{{ end }}
2022-07-20 14:27:20 -07:00
{{ with .Params.tags }}
{{ range . }}
{{ $href := print (absURL "tags/") (urlize .) }}
2025-03-16 20:57:36 -07:00
<a class="tag" href="{{ $href }}">#{{ . }}</a>
{{ end }}
2022-07-20 14:27:20 -07:00
{{ end }}