Move paige-content to page.content.class default

master
Will Faught 2 years ago
parent a1a57c45b0
commit 179607d0c3

@ -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"

@ -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 }}

Loading…
Cancel
Save