From fad409c0bdc30c61b53314849fa1ee02d56ec617 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 23 Feb 2025 10:28:51 -0800 Subject: [PATCH] Mark includes as safe --- layouts/_default/baseof.html | 8 ++++---- layouts/partials/paige/head.html | 4 ++-- layouts/partials/paige/page-footer.html | 4 ++-- layouts/partials/paige/page-header.html | 4 ++-- layouts/partials/paige/page.html | 8 ++++---- layouts/partials/paige/site-footer.html | 4 ++-- layouts/partials/paige/site-header.html | 4 ++-- layouts/partials/paige/style.html | 4 ++-- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 28e61721..8c61b4a5 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,21 +14,21 @@ {{ partial "paige/head.html" $page }} {{ partial "paige/body.html" $page }} - {{ partial "paige/func-include.html" (dict "name" "body-first%s.html" "page" $page) }} + {{ partial "paige/func-include.html" (dict "name" "body-first%s.html" "page" $page) | safeHTML }}
- {{ partial "paige/func-include.html" (dict "name" "site-first%s.html" "page" $page) }} + {{ partial "paige/func-include.html" (dict "name" "site-first%s.html" "page" $page) | safeHTML }} {{ partial "paige/site-header.html" $page }} {{ block "main" $page }}{{ end }} {{ partial "paige/site-footer.html" $page }} - {{ partial "paige/func-include.html" (dict "name" "site-last%s.html" "page" $page) }} + {{ partial "paige/func-include.html" (dict "name" "site-last%s.html" "page" $page) | safeHTML }}
{{ partial "paige/scripts.html" $page }} - {{ partial "paige/func-include.html" (dict "name" "body-last%s.html" "page" $page) }} + {{ partial "paige/func-include.html" (dict "name" "body-last%s.html" "page" $page) | safeHTML }} diff --git a/layouts/partials/paige/head.html b/layouts/partials/paige/head.html index 7d640d49..89aa8c9a 100644 --- a/layouts/partials/paige/head.html +++ b/layouts/partials/paige/head.html @@ -33,7 +33,7 @@ {{ $title := delimit $titles " ยท " }} - {{ 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 }} diff --git a/layouts/partials/paige/page-footer.html b/layouts/partials/paige/page-footer.html index d968fd7b..cfb85bd4 100644 --- a/layouts/partials/paige/page-footer.html +++ b/layouts/partials/paige/page-footer.html @@ -19,7 +19,7 @@ {{ if or $edit $history $first $last $next $prev }} {{ end }} diff --git a/layouts/partials/paige/page-header.html b/layouts/partials/paige/page-header.html index 9a478732..e438291b 100644 --- a/layouts/partials/paige/page-header.html +++ b/layouts/partials/paige/page-header.html @@ -23,7 +23,7 @@ {{ if or $alert $authors $date $description $first $keywords $last $time $series $title $toc $words }}
- {{ 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 }}

{{ if $link }}{{ . }}{{ else }}{{ . }}{{ end }}

@@ -123,7 +123,7 @@
{{ 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 }}
{{ end }} diff --git a/layouts/partials/paige/page.html b/layouts/partials/paige/page.html index 3e491a87..6c6779ce 100644 --- a/layouts/partials/paige/page.html +++ b/layouts/partials/paige/page.html @@ -46,17 +46,17 @@ {{ $class = delimit ($class | uniq | sort) " " }}
- {{ 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 }}
- {{ 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 }}
{{ 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 }}
diff --git a/layouts/partials/paige/site-footer.html b/layouts/partials/paige/site-footer.html index cc437ada..3e00e0cc 100644 --- a/layouts/partials/paige/site-footer.html +++ b/layouts/partials/paige/site-footer.html @@ -17,7 +17,7 @@ {{ if or $copyright $credit $first $last $license }} {{ end }} diff --git a/layouts/partials/paige/site-header.html b/layouts/partials/paige/site-header.html index a625a345..6014f138 100644 --- a/layouts/partials/paige/site-header.html +++ b/layouts/partials/paige/site-header.html @@ -35,7 +35,7 @@ {{ if or $breadcrumbs $description $first $last $menu $title }}
- {{ 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 }}
@@ -153,6 +153,6 @@ {{ 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 }}
{{ end }} diff --git a/layouts/partials/paige/style.html b/layouts/partials/paige/style.html index ce49f344..77605b82 100644 --- a/layouts/partials/paige/style.html +++ b/layouts/partials/paige/style.html @@ -1,7 +1,7 @@ {{ $page := . }}