From fd7970623831c34dd065edbc841b0f0cae7f2279 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 25 Feb 2023 11:45:22 -0800 Subject: [PATCH] Add missing safeCSS --- layouts/partials/paige/style.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/paige/style.html b/layouts/partials/paige/style.html index ed5cc3e9..0db506f7 100644 --- a/layouts/partials/paige/style.html +++ b/layouts/partials/paige/style.html @@ -22,11 +22,11 @@ body, html { } .paige-content .paige-figure.paige-figure-numbered figcaption:empty::before { - content: "{{ i18n `paige_figure` }} " counter(paige-figure); + content: "{{ i18n `paige_figure` | safeCSS }} " counter(paige-figure); } .paige-content .paige-figure.paige-figure-numbered figcaption::before { - content: "{{ i18n `paige_figure` }} " counter(paige-figure) ": "; + content: "{{ i18n `paige_figure` | safeCSS }} " counter(paige-figure) ": "; } .paige-content > blockquote { @@ -41,19 +41,19 @@ body, html { {{ with $page.Param "paige.content.max_width" }} .paige-content { - max-width: {{ . }}; + max-width: {{ . | safeCSS }}; } {{ end }} {{ with $page.Param "paige.table_of_contents.max_width" }} .paige-toc { - max-width: {{ . }}; + max-width: {{ . | safeCSS }}; } {{ end }} {{ with $page.Param "paige.metadata.max_width" }} .paige-metadata { - max-width: {{ . }}; + max-width: {{ . | safeCSS }}; } {{ end }}