summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-05-30 19:57:05 +0800
committerEltrac <hi@guhub.cn>2025-05-30 19:57:05 +0800
commit0f779940b2ce241ba446fc61c3dcb40a9d2f597f (patch)
tree3809943f9c50661fdae75c5d0912d02081b18f3f /layouts
parentb4e3a1e0637d70fb0408a03cb0c1d4126fe95df3 (diff)
feat: better gallery shortcode
add utility classes ("center" and "full-width")
Diffstat (limited to 'layouts')
-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 67de9e0e..ce456e05 100644
--- a/layouts/shortcodes/gallery.html
+++ b/layouts/shortcodes/gallery.html
@@ -1,3 +1,3 @@
-<div class="inline-image">
+<div class="gallery{{ with .Get "class" }} {{ . }}{{ end }}">
{{ .Inner | markdownify | safeHTML }}
</div>