Change article metadata classes to IDs

This commit is contained in:
Will Faught
2023-03-04 15:28:39 -08:00
parent 15f1a617ab
commit 0e25a00fe3
9 changed files with 80 additions and 71 deletions

View File

@@ -11,5 +11,5 @@
{{ $content := cond ($fullpages | not) ($page.Content | replaceRE `(<h[1-6] id="([^"]+)".+)(</h[1-6]+>)` (printf `${1}<a aria-label="%v" class="paige-header-link" href="#${2}">#</a>${3}` (i18n "paige_aria_section_link")) | safeHTML) $page.Content }}
{{ with $content }}
<div class="mw-100 overflow-x-auto paige-content">{{ . }}</div>
<div class="mw-100 overflow-x-auto {{ if $fullpages }} paige-content {{ end }}" {{ if not $fullpages }} id="paige-content" {{ end }}>{{ . }}</div>
{{ end }}