Files
paige-hugo/layouts/partials/paige/about.html
2023-01-28 19:38:28 -08:00

15 lines
703 B
HTML

{{ $authors := cond (.Param "paige.page.authors.hide" | not) (partial "paige/func-authors.html" .) "" }}
{{ $authorsclass := .Param "paige.page.authors.class" | default "text-center text-secondary" }}
{{ $gap := "mb-0" }}
{{ $date := cond (.Param "paige.page.date.hide" | not) .PublishDate "" }}
{{ $dateclass := .Param "paige.page.date.class" | default "text-center text-secondary" }}
{{ with $authors }}
<p class="{{ if $date }} {{ $gap }} {{ end }} {{ $authorsclass }}">{{ . }}</p>
{{ end }}
{{ with $date }}
<p class="{{ $dateclass }}">
<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format (site.Params.paige.date_format | default ":date_long") . }}</time>
</p>
{{ end }}