From 7319719c33ad13f3491f7964ae4a5628dfcf5dda Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 22 Jan 2023 16:24:40 -0800 Subject: [PATCH] Add description_class page param --- README.md | 1 + layouts/partials/paige/description.html | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 35e348b0..ff98d68b 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: + description_class: h5 text-start # Page description class math: true # Enable math typesetting with KaTeX titleclass: display-1 fw-medium text-start # Page title class toc: true # Show a table of contents if there are any headers diff --git a/layouts/partials/paige/description.html b/layouts/partials/paige/description.html index 0099d849..95f65925 100644 --- a/layouts/partials/paige/description.html +++ b/layouts/partials/paige/description.html @@ -1,3 +1,5 @@ {{ with .Description }} -

{{ . | markdownify }}

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

{{ . | markdownify }}

{{ end }}