diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-03-19 03:28:50 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-03-19 07:02:08 -0400 |
commit | 450fe6b28f14605260d3cbbc5b28957996868774 (patch) | |
tree | e3ac2a720ddb6b3585ff5bb77bf12b643f85f13e /generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html | |
parent | d47c3140bff4c7d3a3c87da2546aee420e44bab4 (diff) | |
download | thedroneely.com-450fe6b28f14605260d3cbbc5b28957996868774.tar.gz thedroneely.com-450fe6b28f14605260d3cbbc5b28957996868774.tar.bz2 thedroneely.com-450fe6b28f14605260d3cbbc5b28957996868774.zip |
generators/layouts/shortcodes: Don't mix HTML and markdown
Freedom. Use Hugo's newer markdownify feature and convert all posts
to pure markdown. Render hooks will propagate if .RenderString
function gains the ability to render shortcodes in the future.
https://gohugo.io/functions/renderstring/
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html b/generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html index 3e4966c..8a265e8 100644 --- a/generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html +++ b/generators/hugo/themes/tdro/layouts/shortcodes/sideimage.html @@ -3,12 +3,12 @@ {{ $image := imageConfig $imageFile }} <span class="sidenote-container"> - <label for="{{ $id }}" class="sidenote-toggle sidenote-mark" title="{{ .Inner }}"><span>{{ .Get `mark` }}</span></label> + <label for="{{ $id }}" class="sidenote-toggle sidenote-mark" title="{{ .Inner | markdownify }}"><span>{{ .Get `mark` | markdownify }}</span></label> <input type="checkbox" id="{{ $id }}" class="sidenote-toggle"> <span class="sans-serif sidenote sideimage {{ .Get `set` }}note"> <a href="{{.Get `source`}}" onclick="return false;"> - <img data-image-zoom src="{{ .Get `source`}}" alt="{{ .Inner }}" title="{{ .Get `title`}}" width="{{ $image.Width }}" height="{{ $image.Height }}"/> + <img data-image-zoom src="{{ .Get `source`}}" alt="{{ .Inner | markdownify }}" title="{{ .Get `title`}}" width="{{ $image.Width }}" height="{{ $image.Height }}"/> </a> - <span class="sideimage-footer is-block has-text-centered has-text-grey-dark"><mark>{{ .Inner }}</mark></span> + <span class="sideimage-footer is-block has-text-centered has-text-grey-dark"><mark>{{ .Inner | markdownify }}</mark></span> </span> </span> |