Move paige-content to page.content.class default
This commit is contained in:
@@ -268,7 +268,7 @@ paige:
|
||||
class: "badge text-bg-secondary text-decoration-none" # Default is "badge text-bg-secondary text-decoration-none"
|
||||
hide: false # Default is false
|
||||
content:
|
||||
class: "" # Default is ""
|
||||
class: "paige-content" # Default is "paige-content"
|
||||
hide: false # Default is false
|
||||
date:
|
||||
class: "text-center text-secondary" # Default is "text-center text-secondary"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ $class := $page.Param "paige.page.content.class" }}
|
||||
{{ $class := $page.Param "paige.page.content.class" | default "paige-content" }}
|
||||
{{ $content := "" }}
|
||||
|
||||
{{ if $page.Param "paige.page.title.hide" | not }}
|
||||
@@ -8,7 +8,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ with $content }}
|
||||
<section class="paige-content {{ with $class }} {{ . }} {{ end }}">
|
||||
<section {{ with $class }} class="{{ . }}" {{ end }}>
|
||||
{{ . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user