summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2026-01-01 00:00:57 +0800
committerBigCoke233 <hi@guhub.cn>2026-01-01 00:00:57 +0800
commitbbcd87257c34db37431a04120b66d5369fd85028 (patch)
tree83be6e04a5a09284a9b10bd197f91f97eeb37adb
parentcf5449dc70ac9b946508e2d765593e3bac1a3162 (diff)
fix: images with relative path cause gallery to break
-rw-r--r--layouts/_shortcodes/gallery.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_shortcodes/gallery.html b/layouts/_shortcodes/gallery.html
index ce456e05..da8e4ab5 100644
--- a/layouts/_shortcodes/gallery.html
+++ b/layouts/_shortcodes/gallery.html
@@ -1,3 +1,3 @@
<div class="gallery{{ with .Get "class" }} {{ . }}{{ end }}">
- {{ .Inner | markdownify | safeHTML }}
+ {{ .Page.RenderString .Inner }}
</div>