Add about_class page param

master
Will Faught 2 years ago
parent b88cf2fc5e
commit 19dae751d1

@ -282,6 +282,7 @@ authors: [
]
link: "https://youtu.be/dQw4w9WgXcQ" # The reference for an anchor around the title
paige:
about_class: "h6 text-end" # Page about class
description_class: "h5 text-start" # Page description class
math: true # Enable math typesetting with KaTeX
title_class: "display-1 fw-medium text-start" # Page title class

@ -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 -}}

Loading…
Cancel
Save