summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/shortcodes/gallery.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-22 12:43:22 +0200
committerDanilo M. <danix@danix.xyz>2026-04-22 12:43:22 +0200
commit5b476f8905f411768e23cb01d577a60e5a5fd725 (patch)
tree0a08cc83d809dbea714f52826e822501ee7c0165 /themes/danix-xyz-hacker/layouts/shortcodes/gallery.html
parent082e9246ffe453031894d32d3cee9d5d1bf2b67a (diff)
downloaddanixxyz-5b476f8905f411768e23cb01d577a60e5a5fd725.tar.gz
danixxyz-5b476f8905f411768e23cb01d577a60e5a5fd725.zip
chore: extract theme into git submodule (danix2-hugo-theme)
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/shortcodes/gallery.html')
-rw-r--r--themes/danix-xyz-hacker/layouts/shortcodes/gallery.html12
1 files changed, 0 insertions, 12 deletions
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/gallery.html b/themes/danix-xyz-hacker/layouts/shortcodes/gallery.html
deleted file mode 100644
index b66c327..0000000
--- a/themes/danix-xyz-hacker/layouts/shortcodes/gallery.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{{- $cols := .Get "cols" | default "2" -}}
-
-<div class="my-8 grid gap-4" style="grid-template-columns: repeat({{ $cols }}, 1fr)">
- {{- range $line := strings.Split .Inner "\n" -}}
- {{- if strings.Contains $line "![" -}}
- {{- $image := strings.TrimSpace $line -}}
- {{- if $image -}}
- {{ $image | markdownify | safeHTML }}
- {{- end -}}
- {{- end -}}
- {{- end -}}
-</div>