new-site/layouts/partials/metadata.html

13 lines
470 B
HTML
Raw Normal View History

2025-03-16 23:23:13 -07:00
<a class="u-url" href="{{ .Permalink }}"></a>
2025-03-16 20:58:16 -07:00
{{ if .PublishDate }}
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
<p><time class="dt-published" datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time></p>
{{ end }}
{{ with .Params.tags }}
{{ range . }}
{{ $href := print (absURL "tags/") (urlize .) }}
2025-03-16 23:23:13 -07:00
<a class="p-category tag" href="{{ $href }}">#{{ . }}</a>
2025-03-16 20:58:16 -07:00
{{ end }}
{{ end }}