Add description_class page param

master
Will Faught 2 years ago
parent 971b0c4f41
commit 7319719c33

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

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

Loading…
Cancel
Save