From 05f7d48349d4b29c7456bd501bb183161ec97e2c Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 7 Feb 2025 23:42:26 -0800 Subject: [PATCH] Remove paige.title config --- README.md | 1 - exampleSite/hugo.toml | 2 +- layouts/partials/paige/head.html | 4 ++-- layouts/partials/paige/site-header.html | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0f3fd1e4..28b954be 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,6 @@ keyword_style = "text" # Must be "text" or "pills" license = "" # Examples: "CC BY 4.0 License", "CC BY-NC 4.0 License", "MIT License" math = false # Enable math typesetting menu_style = "links" # Must be "links", "pills", "tabs", or "underline" -title = "" # Site title. Appears above the menu, above the site description, if set. style = "" # CSS included at the end of the stylesheet, before style-last.css [paige.alert] diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 52a264e0..84a7409a 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -7,12 +7,12 @@ titlecasestyle = "Go" languagecode = "en-us" languagedirection = "ltr" languagename = "English" +title = "Paige" weight = 10 [languages.en.params.paige] copyright = "© Will Faught" description = "Powerful, pliable pixel perfection" -title = "Paige" [markup.goldmark.renderer] unsafe = true diff --git a/layouts/partials/paige/head.html b/layouts/partials/paige/head.html index 984e482b..2ee44843 100644 --- a/layouts/partials/paige/head.html +++ b/layouts/partials/paige/head.html @@ -3,7 +3,7 @@ {{ $title := $page.Title }} {{ if and $page.IsHome (not $title) }} - {{ $title = $page.Param "paige.title" | default (site.Title) }} + {{ $title = site.Title }} {{ end }} {{ $title = $title | markdownify | plainify | htmlUnescape }} @@ -14,7 +14,7 @@ {{ $title := .Title }} {{ if and .IsHome (not $title) }} - {{ $title = $page.Param "paige.title" | default (site.Title) }} + {{ $title = site.Title }} {{ end }} {{ $titles = $titles | append ($title | markdownify | plainify | htmlUnescape) }} diff --git a/layouts/partials/paige/site-header.html b/layouts/partials/paige/site-header.html index 0457d929..ec5ba85e 100644 --- a/layouts/partials/paige/site-header.html +++ b/layouts/partials/paige/site-header.html @@ -9,7 +9,7 @@ {{ $menu := $page.Param "paige.site.disable_menu" | not }} {{ $pills := false }} {{ $tabs := false }} -{{ $title := $page.Param "paige.title" | default site.Title | markdownify | and ($page.Param "paige.site.disable_title" | not) }} +{{ $title := site.Title | markdownify | and ($page.Param "paige.site.disable_title" | not) }} {{ $underline := false }} {{ if eq $basePath "/" }} @@ -148,7 +148,7 @@ {{ $title := $ancestor.LinkTitle }} {{ if and (eq $i $last) (not $title) }} - {{ $title = $page.Param "paige.title" | default (site.Title) }} + {{ $title = site.Title }} {{ end }}