diff --git a/README.md b/README.md index eb74812c..9b62dfd0 100644 --- a/README.md +++ b/README.md @@ -248,6 +248,7 @@ paige: github_repo: "example/foo" date_class: "text-center text-secondary" # Page date class date_format: "2006 January 2" # Hugo date format for page dates + description_class: "lead text-center" # Page description class hide_theme_comment: true # Don't put a link to this project in a code comment hide_theme_link: true # Don't put a link to this project in the footer math: @@ -282,6 +283,7 @@ paige: icon: example-icon # Bootstrap icon name link: https://example.com/username name: Example Site # Used for screen readers + title_class: "display-5 fw-bold text-center" # Page title class ``` If you set `hide_theme_comment` or `hide_theme_link`, please credit this project in a post to help others find it. diff --git a/layouts/partials/paige/description.html b/layouts/partials/paige/description.html index 95f65925..62c4507a 100644 --- a/layouts/partials/paige/description.html +++ b/layouts/partials/paige/description.html @@ -1,5 +1,5 @@ {{ with .Description }} - {{ $class := $.Params.paige.description_class | default "lead text-center" }} + {{ $class := $.Param "paige.description_class" | default "lead text-center" }}
{{ . | markdownify }}
{{ end }} diff --git a/layouts/partials/paige/title.html b/layouts/partials/paige/title.html index cc1993d9..d5010279 100644 --- a/layouts/partials/paige/title.html +++ b/layouts/partials/paige/title.html @@ -1,5 +1,5 @@ {{ if .Title }} - {{ $class := .Params.paige.title_class | default "display-5 fw-bold text-center" }} + {{ $class := .Param "paige.title_class" | default "display-5 fw-bold text-center" }} {{ $title := .Title | markdownify }}