diff --git a/README.md b/README.md index 9b62dfd0..741417b2 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,6 @@ paige: domain: "example.com" yandex: # metrica.yandex.com account_id: "123456" - authors_class: "text-center text-secondary" # Page authors class bootstrap: icons: link_href: "https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css" # Local or remote file @@ -246,9 +245,7 @@ paige: account_id: "123456" utterances: # utteranc.es 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: @@ -264,6 +261,11 @@ paige: menu_breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items menu_style: "pills" # Menu item style; must be "links" or "pills"; default is "pills" metadata_max_width: "100ch" # Page metadata max width + page: # Every page + authors_class: "text-center text-secondary" # Page authors 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 pages: # Page lists in list and term default layouts authors_class: "text-center text-secondary" # Page authors class attribute date_class: "text-center text-secondary" # Page date class attribute @@ -283,7 +285,6 @@ 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. @@ -298,12 +299,13 @@ authors: [ ] link: "https://youtu.be/dQw4w9WgXcQ" # The reference for an anchor around the title paige: - 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: "h5 text-start" # Page description class math: true # Enable math typesetting with KaTeX - title_class: "display-1 fw-medium text-start" # Page title class + 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 toc: true # Show a table of contents if there are any headers ``` diff --git a/layouts/partials/paige/about.html b/layouts/partials/paige/about.html index ac09b509..b7b3b514 100644 --- a/layouts/partials/paige/about.html +++ b/layouts/partials/paige/about.html @@ -1,8 +1,8 @@ {{ $authors := partial "paige/func-authors.html" . }} -{{ $authorsclass := .Param "paige.authors_class" | default "text-center text-secondary" }} +{{ $authorsclass := .Param "paige.page.authors_class" | default "text-center text-secondary" }} {{ $gap := "mb-0" }} {{ $date := .PublishDate }} -{{ $dateclass := .Param "paige.date_class" | default "text-center text-secondary" }} +{{ $dateclass := .Param "paige.page.date_class" | default "text-center text-secondary" }} {{ with $authors }}
diff --git a/layouts/partials/paige/content.html b/layouts/partials/paige/content.html index 5949c537..3c898674 100644 --- a/layouts/partials/paige/content.html +++ b/layouts/partials/paige/content.html @@ -1,5 +1,5 @@ {{ if .Content }} - {{ $class := $.Params.paige.content_class }} + {{ $class := $.Params.paige.page.content_class }}{{ . | markdownify }}
{{ end }} diff --git a/layouts/partials/paige/title.html b/layouts/partials/paige/title.html index d5010279..55ca0860 100644 --- a/layouts/partials/paige/title.html +++ b/layouts/partials/paige/title.html @@ -1,5 +1,5 @@ {{ if .Title }} - {{ $class := .Param "paige.title_class" | default "display-5 fw-bold text-center" }} + {{ $class := .Param "paige.page.title_class" | default "display-5 fw-bold text-center" }} {{ $title := .Title | markdownify }}