Add about_class page param

This commit is contained in:
Will Faught
2023-01-22 16:34:17 -08:00
parent b88cf2fc5e
commit 19dae751d1
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
{{ $authors := partial "paige/func-authors.html" . }}
{{ if or $authors .PublishDate}}
<p class="text-center text-secondary">
{{ $class := .Params.paige.about_class | default "text-center text-secondary" }}
<p class="{{ $class }}">
{{- 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 -}}