Move paige.main.metadata.content to main

This commit is contained in:
Will Faught
2023-02-05 15:15:09 -08:00
parent 643eb4842e
commit 2458841d9a
2 changed files with 5 additions and 5 deletions

View File

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