You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
715 B
HTML
15 lines
715 B
HTML
{{ $authors := cond (.Param "paige.page.hide_authors" | not | 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.hide_date" | not | 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 }}
|