aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts/_default/single.html
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-03-20 02:31:00 -0400
committerThedro Neely <thedroneely@gmail.com>2022-03-20 02:31:00 -0400
commite2aff35eb02e501640987e72a08b40a32120204d (patch)
treea27ae9f41720d6a0ceb26fd2e981bc8c79860327 /generators/hugo/themes/tdro/layouts/_default/single.html
parentbf3d2b054388da125568f23b64509a9ec8e939b9 (diff)
downloadthedroneely.com-e2aff35eb02e501640987e72a08b40a32120204d.tar.gz
thedroneely.com-e2aff35eb02e501640987e72a08b40a32120204d.tar.bz2
thedroneely.com-e2aff35eb02e501640987e72a08b40a32120204d.zip
generators/hugo/layouts/_markup/render-image: Deprecate image shortcodes
Add render image hook and carefully slip figures into content. Image shortcodes can now be replaced with markdown and eventually removed.
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/_default/single.html')
-rw-r--r--generators/hugo/themes/tdro/layouts/_default/single.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/single.html b/generators/hugo/themes/tdro/layouts/_default/single.html
index 572b90a..df33970 100644
--- a/generators/hugo/themes/tdro/layouts/_default/single.html
+++ b/generators/hugo/themes/tdro/layouts/_default/single.html
@@ -21,7 +21,14 @@
{{- partial "page-status.html" . -}}
- {{- .Content | replaceRE "<p>" "<p class=\"serif is-size-serif\">" | replaceRE "<h2" "<h2 class=\"serif\"" | replaceRE "<h3" "<h3 class=\"serif\"" | safeHTML }}
+ {{- .Content |
+ replaceRE "<p>\n<figure>" "<figure>" |
+ replaceRE "</figure></p>" "</figure>" |
+ replaceRE "<p>" "<p class=\"serif is-size-serif\">" |
+ replaceRE "<h2" "<h2 class=\"serif\"" |
+ replaceRE "<h3" "<h3 class=\"serif\"" |
+ safeHTML
+ -}}
</article>
</div>
</div>