Mark includes as safe
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
{{ $title := delimit $titles " · " }}
|
||||
|
||||
<head>
|
||||
{{ partial "paige/func-include.html" (dict "name" "head-first%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "head-first%s.html" "page" $page) | safeHTML }}
|
||||
{{ partial "paige/metas.html" $page }}
|
||||
|
||||
{{ with $title }}
|
||||
@@ -42,5 +42,5 @@
|
||||
|
||||
{{ partial "paige/links.html" $page }}
|
||||
{{ partial "paige/style.html" $page }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "head-last%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "head-last%s.html" "page" $page) | safeHTML }}
|
||||
</head>
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
{{ if or $edit $history $first $last $next $prev }}
|
||||
<footer class="mw-100" id="paige-page-footer">
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-footer-first%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-footer-first%s.html" "page" $page) | safeHTML }}
|
||||
|
||||
{{ if or $edit $history }}
|
||||
<div id="paige-page-file">
|
||||
@@ -49,6 +49,6 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-footer-last%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-footer-last%s.html" "page" $page) | safeHTML }}
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
@@ -23,7 +23,7 @@
|
||||
{{ if or $alert $authors $date $description $first $keywords $last $time $series $title $toc $words }}
|
||||
<header class="mw-100" id="paige-page-header">
|
||||
<div class="align-items-center d-flex flex-column">
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-header-first%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-header-first%s.html" "page" $page) | safeHTML }}
|
||||
|
||||
{{ with $title }}
|
||||
<h1 class="fw-bold" id="paige-page-title" {{ if $microdata }} itemprop="headline name" {{ end }}>{{ if $link }}<a href="{{ $link }}">{{ . }}</a>{{ else }}{{ . }}{{ end }}</h1>
|
||||
@@ -123,7 +123,7 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-header-last%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-header-last%s.html" "page" $page) | safeHTML }}
|
||||
</div>
|
||||
</header>
|
||||
{{ end }}
|
||||
|
@@ -46,17 +46,17 @@
|
||||
{{ $class = delimit ($class | uniq | sort) " " }}
|
||||
|
||||
<article class="{{ if $min }} align-items-center d-flex flex-column {{ end }} {{ $class }}" id="paige-page">
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-first%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-first%s.html" "page" $page) | safeHTML }}
|
||||
{{ partial "paige/page-header.html" $page }}
|
||||
|
||||
{{ with $content }}
|
||||
<main class="mw-100" id="paige-page-content" {{ if $microdata }} itemprop="articleBody" {{ end }}>
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-body-first%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-body-first%s.html" "page" $page) | safeHTML }}
|
||||
{{ . | safeHTML }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-body-last%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-body-last%s.html" "page" $page) | safeHTML }}
|
||||
</main>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "paige/page-footer.html" $page }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-last%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "page-last%s.html" "page" $page) | safeHTML }}
|
||||
</article>
|
||||
|
@@ -17,7 +17,7 @@
|
||||
|
||||
{{ if or $copyright $credit $first $last $license }}
|
||||
<footer id="paige-site-footer">
|
||||
{{ partial "paige/func-include.html" (dict "name" "site-footer-first%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "site-footer-first%s.html" "page" $page) | safeHTML }}
|
||||
|
||||
{{ with $copyright }}
|
||||
<p class="paige-row-short text-center text-secondary" id="paige-site-copyright" {{ if $microdata }} itemprop="copyrightNotice" {{ end }}>{{ . }}</p>
|
||||
@@ -31,6 +31,6 @@
|
||||
<p class="paige-row-short text-center text-secondary" id="paige-site-credit">{{ . }}</p>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "paige/func-include.html" (dict "name" "site-footer-last%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "site-footer-last%s.html" "page" $page) | safeHTML }}
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
{{ if or $breadcrumbs $description $first $last $menu $title }}
|
||||
<header id="paige-site-header">
|
||||
{{ partial "paige/func-include.html" (dict "name" "site-header-first%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "site-header-first%s.html" "page" $page) | safeHTML }}
|
||||
|
||||
{{ with $title }}
|
||||
<div class="display-1 fw-bold {{ if not (or $breadcrumbs $description $menu) }} paige-row-tall {{ end }} text-center" id="paige-site-title">
|
||||
@@ -153,6 +153,6 @@
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "paige/func-include.html" (dict "name" "site-header-last%s.html" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "site-header-last%s.html" "page" $page) | safeHTML }}
|
||||
</header>
|
||||
{{ end }}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{{ $page := . }}
|
||||
|
||||
<style>
|
||||
{{ partial "paige/func-include.html" (dict "name" "style-first%s.css" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "style-first%s.css" "page" $page) | safeCSS }}
|
||||
|
||||
.paige-shortcode-figure-numbered {
|
||||
counter-increment: paige-shortcode-figure-numbered;
|
||||
@@ -111,5 +111,5 @@ table {
|
||||
{{ . | safeCSS }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "paige/func-include.html" (dict "name" "style-last%s.css" "page" $page) }}
|
||||
{{ partial "paige/func-include.html" (dict "name" "style-last%s.css" "page" $page) | safeCSS }}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user