Remove paige.title, paige.list.title params

master
Will Faught 2 years ago
parent c82cb669af
commit 0698a38e17

@ -296,9 +296,6 @@ paige:
hide: false hide: false
inner_class: "badge text-bg-secondary text-decoration-none" inner_class: "badge text-bg-secondary text-decoration-none"
outer_class: "mb-0 text-center" outer_class: "mb-0 text-center"
title:
class: "mb-0 text-center"
hide: false
math: false # Enable math typesetting math: false # Enable math typesetting
menu: menu:
breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items
@ -323,9 +320,6 @@ paige:
class: "border mb-3 pe-3 ps-3 pt-3 rounded" class: "border mb-3 pe-3 ps-3 pt-3 rounded"
hide: false hide: false
max_width: "" max_width: ""
title:
class: "display-5 fw-bold text-center"
hide: false
``` ```
The assigned values shown are the default values. The assigned values shown are the default values.

@ -23,8 +23,7 @@
{{ $tags := cond ($page.Param "paige.terms.hide" | not) ($page.Params.tags | default slice) slice | uniq }} {{ $tags := cond ($page.Param "paige.terms.hide" | not) ($page.Params.tags | default slice) slice | uniq }}
{{ $termsinnerclass := $page.Param "paige.terms.inner_class" | default "badge paige-terms-inner text-bg-secondary text-decoration-none" }} {{ $termsinnerclass := $page.Param "paige.terms.inner_class" | default "badge paige-terms-inner text-bg-secondary text-decoration-none" }}
{{ $termsouterclass := $page.Param "paige.terms.outer_class" | default "paige-terms-outer text-center" }} {{ $termsouterclass := $page.Param "paige.terms.outer_class" | default "paige-terms-outer text-center" }}
{{ $title := cond ($page.Param "paige.title.hide" | not) ($page.Title | markdownify) "" }} {{ $title := $page.Title | markdownify }}
{{ $titleclass := $page.Param "paige.title.class" | default "display-5 fw-bold paige-title text-center" }}
{{ $titlelink := $page.Params.link }} {{ $titlelink := $page.Params.link }}
{{ $titlepage := $page.RelPermalink }} {{ $titlepage := $page.RelPermalink }}
@ -34,7 +33,7 @@
<section class="paige-metadata w-100"> <section class="paige-metadata w-100">
{{ with $title }} {{ with $title }}
<h1 {{ with $titleclass }} class="{{ . }}" {{ end }}>{{ with $titlelink }}<a href="{{ . }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}{{ if $listshowcontent }}<a aria-label="{{ i18n `paige_aria_page_link` }}" class="paige-header-link" href="{{ $titlepage }}">#</a>{{ end }}</h1> <h1 class="display-5 fw-bold paige-title text-center">{{ with $titlelink }}<a href="{{ . }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}{{ if $listshowcontent }}<a aria-label="{{ i18n `paige_aria_page_link` }}" class="paige-header-link" href="{{ $titlepage }}">#</a>{{ end }}</h1>
{{ end }} {{ end }}
{{ with $description }} {{ with $description }}

@ -45,8 +45,7 @@
{{ $tags := cond ($page.Param "paige.list.terms.hide" | not) (.Params.tags | default slice) slice | uniq }} {{ $tags := cond ($page.Param "paige.list.terms.hide" | not) (.Params.tags | default slice) slice | uniq }}
{{ $termsinnerclass := $page.Param "paige.list.terms.inner_class" | default "badge paige-terms-inner text-bg-secondary text-decoration-none" }} {{ $termsinnerclass := $page.Param "paige.list.terms.inner_class" | default "badge paige-terms-inner text-bg-secondary text-decoration-none" }}
{{ $termsouterclass := $page.Param "paige.list.terms.outer_class" | default "mb-0 paige-terms-outer text-center" }} {{ $termsouterclass := $page.Param "paige.list.terms.outer_class" | default "mb-0 paige-terms-outer text-center" }}
{{ $title := cond ($page.Param "paige.list.title.hide" | not) (.Title | markdownify) "" }} {{ $title := .Title | markdownify }}
{{ $titleclass := $page.Param "paige.list.title.class" | default "mb-0 paige-title text-center" }}
{{ $titlelink := .RelPermalink }} {{ $titlelink := .RelPermalink }}
{{ if and ($page.Param "paige.git.commit_url_prefix") $page.GitInfo }} {{ if and ($page.Param "paige.git.commit_url_prefix") $page.GitInfo }}
@ -78,7 +77,7 @@
<section {{ with $sectionclass }} class="{{ . }}" {{ end }}> <section {{ with $sectionclass }} class="{{ . }}" {{ end }}>
{{ with $title }} {{ with $title }}
<p {{ with $titleclass }} class="{{ . }}" {{ end }}><a href="{{ $titlelink }}">{{ . }}</a></p> <p class="mb-0 paige-title text-center"><a href="{{ $titlelink }}">{{ . }}</a></p>
{{ end }} {{ end }}
{{ with $description }} {{ with $description }}

Loading…
Cancel
Save