aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-12-30 16:39:52 -0500
committertdro <tdro@noreply.example.com>2023-12-30 16:39:52 -0500
commit33d58fdb13e0f8c6aa9009f6953f2672ff5a3c97 (patch)
tree0ab9350713cd6a786bb7d29312ed7f0ae00a7f6a /themes/default/layouts
parentbcbdc6c0cd41f8c62818aa0469bfb70030fba6ed (diff)
downloadcanory-33d58fdb13e0f8c6aa9009f6953f2672ff5a3c97.tar.gz
canory-33d58fdb13e0f8c6aa9009f6953f2672ff5a3c97.tar.bz2
canory-33d58fdb13e0f8c6aa9009f6953f2672ff5a3c97.zip
config: Remove figure fix
Diffstat (limited to 'themes/default/layouts')
-rw-r--r--themes/default/layouts/partials/function-content.html7
1 files changed, 0 insertions, 7 deletions
diff --git a/themes/default/layouts/partials/function-content.html b/themes/default/layouts/partials/function-content.html
index f206a03..19c15ea 100644
--- a/themes/default/layouts/partials/function-content.html
+++ b/themes/default/layouts/partials/function-content.html
@@ -2,13 +2,6 @@
{{- $content := $pageContext.Content -}}
{{- $expired := and .ExpiryDate (ge now.Unix .ExpiryDate.Unix) -}}
-{{-
- $content = $content |
- replaceRE "<p><figure>" "<figure>" |
- replaceRE "<p>\n<figure>" "<figure>" |
- replaceRE "</figure></p>" "</figure>" |
--}}
-
{{- $brokenBlockquotes := findRE `(?sU)</blockquote>\n<p>(&ndash;|&mdash;).*</p>` .Content -}}
{{- range $brokenBlockquote := $brokenBlockquotes -}}