diff options
author | Thedro Neely <thedroneely@gmail.com> | 2024-01-06 19:16:12 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2024-01-06 19:16:12 -0500 |
commit | b0feb62a0bbb5987fe37ab8bc26503c3dd812d84 (patch) | |
tree | 9d3cb03bb57cc909cc55a114b2680d6f84d3e439 /generators/hugo/themes/tdro/layouts/shortcodes | |
parent | 6d745f1e8c7b870524e01ee7a4886db38634e2ae (diff) | |
download | thedroneely.com-b0feb62a0bbb5987fe37ab8bc26503c3dd812d84.tar.gz thedroneely.com-b0feb62a0bbb5987fe37ab8bc26503c3dd812d84.tar.bz2 thedroneely.com-b0feb62a0bbb5987fe37ab8bc26503c3dd812d84.zip |
public/js/app: Remove CSP violations
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/shortcodes')
3 files changed, 12 insertions, 6 deletions
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 -}} <figure> - <a href="{{ .Get `source` }}" onclick="return false;"> - <img data-image-zoom + <a href="{{ .Get `source` }}"> + <img + loading="lazy" + data-image-zoom="" src="{{ .Get `source` }}" alt="{{ .Get `title` }}" title="{{ .Get `title` }}" diff --git a/generators/hugo/themes/tdro/layouts/shortcodes/marginimage.html b/generators/hugo/themes/tdro/layouts/shortcodes/marginimage.html index d69966f..e90c390 100644 --- a/generators/hugo/themes/tdro/layouts/shortcodes/marginimage.html +++ b/generators/hugo/themes/tdro/layouts/shortcodes/marginimage.html @@ -10,8 +10,10 @@ <label for="{{ $id }}" title="{{ .Inner | replaceRE "\n" " " | markdownify }}"><span>{{ $mark | markdownify }}</span></label> <input type="checkbox" id="{{ $id }}" name="toggle"> <margin-note title="{{ $mark }}" image {{ $set }}> - <a href="{{ $source }}" onclick="return false;"> - <img data-image-zoom + <a href="{{ $source }}"> + <img + loading="lazy" + data-image-zoom="" src="{{ $source }}" title="{{ $title }}" width="{{ $image.Width }}" diff --git a/generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html b/generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html index a2574d5..0e18a56 100644 --- a/generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html +++ b/generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html @@ -10,8 +10,10 @@ <label for="{{ $id }}" title="{{ .Inner | replaceRE "\n" " " | markdownify }}"><span>{{ $mark | markdownify }}</span></label> <input type="checkbox" id="{{ $id }}" name="toggle"> <side-note title="{{ $mark }}" image {{ $set }}> - <a href="{{ $source }}" onclick="return false;"> - <img data-image-zoom + <a href="{{ $source }}"> + <img + loading="lazy" + data-image-zoom="" src="{{ $source }}" title="{{ $title }}" width="{{ $image.Width }}" |