Rename paige.show_full_pages to paige.page_list.content.show

This commit is contained in:
Will Faught
2023-02-04 21:15:40 -08:00
parent 91865e3ade
commit 226d4129f2
8 changed files with 12 additions and 9 deletions

View File

@@ -4,7 +4,7 @@
{{ $content := "" }}
{{ if $page.Param "paige.page.title.hide" | not }}
{{ $content = cond ($page.Scratch.Get "paige_show_full_pages" | 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 }}
{{ $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 }}
{{ with $content }}