Add description_class page param

This commit is contained in:
Will Faught
2023-01-22 16:24:40 -08:00
parent 971b0c4f41
commit 7319719c33
2 changed files with 4 additions and 1 deletions

View File

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

View File

@@ -1,3 +1,5 @@
{{ with .Description }}
<p class="lead text-center">{{ . | markdownify }}</p>
{{ $class := $.Params.paige.description_class | default "lead text-center" }}
<p class="{{ $class }}">{{ . | markdownify }}</p>
{{ end }}