Remove paige.title config

This commit is contained in:
Will Faught
2025-02-07 23:42:26 -08:00
parent 80a6f40989
commit 05f7d48349
4 changed files with 5 additions and 6 deletions

View File

@@ -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" license = "" # Examples: "CC BY 4.0 License", "CC BY-NC 4.0 License", "MIT License"
math = false # Enable math typesetting math = false # Enable math typesetting
menu_style = "links" # Must be "links", "pills", "tabs", or "underline" 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 style = "" # CSS included at the end of the stylesheet, before style-last.css
[paige.alert] [paige.alert]

View File

@@ -7,12 +7,12 @@ titlecasestyle = "Go"
languagecode = "en-us" languagecode = "en-us"
languagedirection = "ltr" languagedirection = "ltr"
languagename = "English" languagename = "English"
title = "Paige"
weight = 10 weight = 10
[languages.en.params.paige] [languages.en.params.paige]
copyright = "© Will Faught" copyright = "© Will Faught"
description = "Powerful, pliable pixel perfection" description = "Powerful, pliable pixel perfection"
title = "Paige"
[markup.goldmark.renderer] [markup.goldmark.renderer]
unsafe = true unsafe = true

View File

@@ -3,7 +3,7 @@
{{ $title := $page.Title }} {{ $title := $page.Title }}
{{ if and $page.IsHome (not $title) }} {{ if and $page.IsHome (not $title) }}
{{ $title = $page.Param "paige.title" | default (site.Title) }} {{ $title = site.Title }}
{{ end }} {{ end }}
{{ $title = $title | markdownify | plainify | htmlUnescape }} {{ $title = $title | markdownify | plainify | htmlUnescape }}
@@ -14,7 +14,7 @@
{{ $title := .Title }} {{ $title := .Title }}
{{ if and .IsHome (not $title) }} {{ if and .IsHome (not $title) }}
{{ $title = $page.Param "paige.title" | default (site.Title) }} {{ $title = site.Title }}
{{ end }} {{ end }}
{{ $titles = $titles | append ($title | markdownify | plainify | htmlUnescape) }} {{ $titles = $titles | append ($title | markdownify | plainify | htmlUnescape) }}

View File

@@ -9,7 +9,7 @@
{{ $menu := $page.Param "paige.site.disable_menu" | not }} {{ $menu := $page.Param "paige.site.disable_menu" | not }}
{{ $pills := false }} {{ $pills := false }}
{{ $tabs := 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 }} {{ $underline := false }}
{{ if eq $basePath "/" }} {{ if eq $basePath "/" }}
@@ -148,7 +148,7 @@
{{ $title := $ancestor.LinkTitle }} {{ $title := $ancestor.LinkTitle }}
{{ if and (eq $i $last) (not $title) }} {{ if and (eq $i $last) (not $title) }}
{{ $title = $page.Param "paige.title" | default (site.Title) }} {{ $title = site.Title }}
{{ end }} {{ end }}
<li class="breadcrumb-item"> <li class="breadcrumb-item">