blog/themes/shockrah.xyz/layouts/partials/metadata.html

11 lines
385 B
HTML
Raw Normal View History

2021-08-14 20:46:18 +00:00
{{ $dateTime := .PublishDate.Format "2017-01-01" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
{{ with .Params.tags }}
{{ range . }}
{{ $href := print (absURL "tags/") (urlize .) }}
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
{{ end }}
{{ end }}