alejandr0angul0.dev/themes/alejandro-angulo/layouts/partials/metadata.html
2022-01-01 11:30:51 -08:00

14 lines
410 B
HTML

<div class="post-meta">
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $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 href="{{ $href }}">#{{ . }}</a>
{{ end }}
{{ end }}
</div>