Move paige.main.metadata.content to main
This commit is contained in:
@@ -300,9 +300,6 @@ paige:
|
||||
authors:
|
||||
class: "text-center text-secondary" # Default is "text-center text-secondary"
|
||||
hide: false # Default is false
|
||||
content:
|
||||
class: "mw-100 paige-content" # Default is "mw-100 paige-content"
|
||||
hide: false # Default is false
|
||||
date:
|
||||
class: "text-center text-secondary" # Default is "text-center text-secondary"
|
||||
format: ":date_long" # Default is ":date_long"
|
||||
@@ -329,6 +326,9 @@ paige:
|
||||
table_of_contents:
|
||||
hide: false # Default is false
|
||||
max_width: "66ch" # Default is ""
|
||||
content:
|
||||
class: "mw-100 paige-content" # Default is "mw-100 paige-content"
|
||||
hide: false # Default is false
|
||||
rss:
|
||||
managing_editor: "Michael Bluth" # Default is ""
|
||||
web_master: "Michael Bluth" # Default is ""
|
||||
|
@@ -1,9 +1,9 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ $class := $page.Param "paige.main.metadata.content.class" | default "mw-100 paige-content" }}
|
||||
{{ $class := $page.Param "paige.main.content.class" | default "mw-100 paige-content" }}
|
||||
{{ $content := "" }}
|
||||
|
||||
{{ if $page.Param "paige.main.metadata.title.hide" | not }}
|
||||
{{ if $page.Param "paige.main.content.hide" | not }}
|
||||
{{ $content = cond ($page.Scratch.Get "paige_list_show_content" | not) ($page.Content | replaceRE `(<h[1-6] id="([^"]+)".+)(</h[1-6]+>)` `${1}<a aria-label="Link to this section" class="paige-header-link" href="#${2}">#</a>${3}` | safeHTML) $page.Content }}
|
||||
{{ end }}
|
||||
|
||||
|
Reference in New Issue
Block a user