From a2b36a4208700073efbbb23a4c8db72396852dae Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 28 Jan 2023 16:02:38 -0800 Subject: [PATCH] Add paige.page.content_class site config --- README.md | 1 + layouts/partials/paige/content.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 741417b2..ce3e40f4 100644 --- a/README.md +++ b/README.md @@ -263,6 +263,7 @@ paige: metadata_max_width: "100ch" # Page metadata max width page: # Every page authors_class: "text-center text-secondary" # Page authors class + content_class: "fst-italic" # Page content class date_class: "text-center text-secondary" # Page date class description_class: "lead text-center" # Page description class title_class: "display-5 fw-bold text-center" # Page title class diff --git a/layouts/partials/paige/content.html b/layouts/partials/paige/content.html index 3c898674..f9fd4f26 100644 --- a/layouts/partials/paige/content.html +++ b/layouts/partials/paige/content.html @@ -1,5 +1,5 @@ {{ if .Content }} - {{ $class := $.Params.paige.page.content_class }} + {{ $class := $.Param "paige.page.content_class" }}
{{ with $class }}