From b0feb62a0bbb5987fe37ab8bc26503c3dd812d84 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Sat, 6 Jan 2024 19:16:12 -0500 Subject: public/js/app: Remove CSP violations --- .../themes/tdro/layouts/_default/_markup/render-image.html | 6 ++++-- .../hugo/themes/tdro/layouts/partials/article-webrings.html | 2 +- generators/hugo/themes/tdro/layouts/shortcodes/image.html | 6 ++++-- .../hugo/themes/tdro/layouts/shortcodes/marginimage.html | 6 ++++-- generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html | 6 ++++-- public/js/app.js | 11 +++++++++++ 6 files changed, 28 insertions(+), 9 deletions(-) diff --git a/generators/hugo/themes/tdro/layouts/_default/_markup/render-image.html b/generators/hugo/themes/tdro/layouts/_default/_markup/render-image.html index 1b524ac..c08b69a 100644 --- a/generators/hugo/themes/tdro/layouts/_default/_markup/render-image.html +++ b/generators/hugo/themes/tdro/layouts/_default/_markup/render-image.html @@ -29,8 +29,10 @@ {{- /* This comment removes trailing newlines. */ -}}
- - + {{ $.Text | htmlUnescape }} {{ "## Web Ring" | markdownify }} + {{- partial $include . -}} - {{- partial $include . -}} {{- end -}} diff --git a/generators/hugo/themes/tdro/layouts/shortcodes/image.html b/generators/hugo/themes/tdro/layouts/shortcodes/image.html index 3b211ff..eb3c1d1 100644 --- a/generators/hugo/themes/tdro/layouts/shortcodes/image.html +++ b/generators/hugo/themes/tdro/layouts/shortcodes/image.html @@ -2,8 +2,10 @@ {{- $image := imageConfig $imageFile -}}
- - + {{ .Get `title` }}{{ $mark | markdownify }} - - + {{ $mark | markdownify }} - - +