Move paige-content to page.content.class default

This commit is contained in:
Will Faught
2023-02-04 17:59:43 -08:00
parent a1a57c45b0
commit 179607d0c3
2 changed files with 3 additions and 3 deletions

View File

@@ -268,7 +268,7 @@ paige:
class: "badge text-bg-secondary text-decoration-none" # Default is "badge text-bg-secondary text-decoration-none" class: "badge text-bg-secondary text-decoration-none" # Default is "badge text-bg-secondary text-decoration-none"
hide: false # Default is false hide: false # Default is false
content: content:
class: "" # Default is "" class: "paige-content" # Default is "paige-content"
hide: false # Default is false hide: false # Default is false
date: date:
class: "text-center text-secondary" # Default is "text-center text-secondary" class: "text-center text-secondary" # Default is "text-center text-secondary"

View File

@@ -1,6 +1,6 @@
{{ $page := . }} {{ $page := . }}
{{ $class := $page.Param "paige.page.content.class" }} {{ $class := $page.Param "paige.page.content.class" | default "paige-content" }}
{{ $content := "" }} {{ $content := "" }}
{{ if $page.Param "paige.page.title.hide" | not }} {{ if $page.Param "paige.page.title.hide" | not }}
@@ -8,7 +8,7 @@
{{ end }} {{ end }}
{{ with $content }} {{ with $content }}
<section class="paige-content {{ with $class }} {{ . }} {{ end }}"> <section {{ with $class }} class="{{ . }}" {{ end }}>
{{ . }} {{ . }}
</section> </section>
{{ end }} {{ end }}