diff --git a/README.md b/README.md index 31872565..75362760 100644 --- a/README.md +++ b/README.md @@ -291,6 +291,7 @@ paige: method: "resize" # Hugo image processing method; values are "crop", "fill", "fit", "resize"; default is "resize" options: "550x webp picture Lanczos" # Hugo image processing options; default is "550x webp picture Lanczos" math: true # Enable math typesetting with KaTeX + titleclass: display-5 fw-bold text-center # Page title class attribute value toc: true # Show a table of contents if there are any headers ``` diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index 6879114e..0266cc37 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -4,6 +4,8 @@ description: Go ahead, touch the Cornballer greeting: You know [best](https://www.youtube.com/watch?v=1WDW8XKEGgU) image_stretch: true image_url: stretch.webp +paige: + titleclass: display-1 fw-bold text-center title: No Borders, No Limits --- diff --git a/layouts/partials/paige/title.html b/layouts/partials/paige/title.html index 392b1577..5023f48b 100644 --- a/layouts/partials/paige/title.html +++ b/layouts/partials/paige/title.html @@ -1,10 +1,6 @@ {{ if .Title }} - {{ $class := "display-5" }} + {{ $class := .Params.paige.titleclass | default "display-5 fw-bold text-center" }} {{ $title := .Title | markdownify }} - {{ if .IsHome }} - {{ $class = "display-1" }} - {{ end }} - -

{{ if .Params.link }}{{ $title }}{{ else }}{{ $title }}{{ end }}{{ if .Scratch.Get "paige_show_full_pages" }}#{{ end }}

+

{{ if .Params.link }}{{ $title }}{{ else }}{{ $title }}{{ end }}{{ if .Scratch.Get "paige_show_full_pages" }}#{{ end }}

{{ end }}