Files
paige-hugo/layouts/partials/paige-metadata.html
2022-12-19 17:18:00 -08:00

9 lines
397 B
HTML

{{ $authors := partial "paige-func-authors.html" . }}
{{ if or $authors .PublishDate}}
<p class="text-center text-muted">
{{- with $authors }}{{ . }}{{ end -}}
{{- if and $authors .PublishDate }}<br>{{ end -}}
{{- with .PublishDate }}<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format (site.Params.paige.date_format | default ":date_long") . }}</time>{{ end -}}
</p>
{{ end }}