From 19dae751d1c422d2a30986403260f6e72abc8843 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 22 Jan 2023 16:34:17 -0800 Subject: [PATCH] Add about_class page param --- README.md | 1 + layouts/partials/paige/other.html | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11ea85e0..fb14cc58 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/layouts/partials/paige/other.html b/layouts/partials/paige/other.html index bd3e51b5..f45ccf22 100644 --- a/layouts/partials/paige/other.html +++ b/layouts/partials/paige/other.html @@ -1,6 +1,9 @@ {{ $authors := partial "paige/func-authors.html" . }} + {{ if or $authors .PublishDate}} -

+ {{ $class := .Params.paige.about_class | default "text-center text-secondary" }} + +

{{- with $authors }}{{ . }}{{ end -}} {{- if and $authors .PublishDate }}
{{ end -}} {{- with .PublishDate }}{{ end -}}