From 231d29bf26820ca058dec57c06345943ca6dbbf2 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 15 Apr 2026 16:38:12 +0200 Subject: Fix shortcode location: move from shortcodes/ to layouts/shortcodes/ Hugo v0.156.0+ requires shortcodes to be in layouts/shortcodes/ directory. Moved all shortcodes (gravatar, image, gallery, contact-form) to correct location. Co-Authored-By: Claude Haiku 4.5 --- themes/danix-xyz-hacker/layouts/shortcodes/gallery.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/gallery.html (limited to 'themes/danix-xyz-hacker/layouts/shortcodes/gallery.html') diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/gallery.html b/themes/danix-xyz-hacker/layouts/shortcodes/gallery.html new file mode 100644 index 0000000..b66c327 --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/shortcodes/gallery.html @@ -0,0 +1,12 @@ +{{- $cols := .Get "cols" | default "2" -}} + +
+ {{- range $line := strings.Split .Inner "\n" -}} + {{- if strings.Contains $line "![" -}} + {{- $image := strings.TrimSpace $line -}} + {{- if $image -}} + {{ $image | markdownify | safeHTML }} + {{- end -}} + {{- end -}} + {{- end -}} +
-- cgit v1.2.3