aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts/partials/function-content.html
diff options
context:
space:
mode:
Diffstat (limited to 'generators/hugo/themes/tdro/layouts/partials/function-content.html')
-rw-r--r--generators/hugo/themes/tdro/layouts/partials/function-content.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/generators/hugo/themes/tdro/layouts/partials/function-content.html b/generators/hugo/themes/tdro/layouts/partials/function-content.html
new file mode 100644
index 0000000..6debad6
--- /dev/null
+++ b/generators/hugo/themes/tdro/layouts/partials/function-content.html
@@ -0,0 +1,10 @@
+{{- $content := . -}}
+
+{{-
+ $content = $content |
+ replaceRE "<p><figure>" "<figure>" |
+ replaceRE "<p>\n<figure>" "<figure>" |
+ replaceRE "</figure></p>" "</figure>" |
+-}}
+
+{{- return $content -}}