Add about_class page param
This commit is contained in:
@@ -282,6 +282,7 @@ authors: [
|
|||||||
]
|
]
|
||||||
link: "https://youtu.be/dQw4w9WgXcQ" # The reference for an anchor around the title
|
link: "https://youtu.be/dQw4w9WgXcQ" # The reference for an anchor around the title
|
||||||
paige:
|
paige:
|
||||||
|
about_class: "h6 text-end" # Page about class
|
||||||
description_class: "h5 text-start" # Page description class
|
description_class: "h5 text-start" # Page description class
|
||||||
math: true # Enable math typesetting with KaTeX
|
math: true # Enable math typesetting with KaTeX
|
||||||
title_class: "display-1 fw-medium text-start" # Page title class
|
title_class: "display-1 fw-medium text-start" # Page title class
|
||||||
|
@@ -1,6 +1,9 @@
|
|||||||
{{ $authors := partial "paige/func-authors.html" . }}
|
{{ $authors := partial "paige/func-authors.html" . }}
|
||||||
|
|
||||||
{{ if or $authors .PublishDate}}
|
{{ 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 -}}
|
{{- with $authors }}{{ . }}{{ end -}}
|
||||||
{{- if and $authors .PublishDate }}<br>{{ 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 -}}
|
{{- with .PublishDate }}<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format (site.Params.paige.date_format | default ":date_long") . }}</time>{{ end -}}
|
||||||
|
Reference in New Issue
Block a user