summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/shortcodes/image.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-15 16:38:12 +0200
committerDanilo M. <danix@danix.xyz>2026-04-15 16:38:12 +0200
commit231d29bf26820ca058dec57c06345943ca6dbbf2 (patch)
treeb60f6e4afd1bf88bcfeb02b6d28f00cc1806ccc9 /themes/danix-xyz-hacker/shortcodes/image.html
parent46065a5077f113ab772e3a46f83748efe5f81caf (diff)
downloaddanixxyz-231d29bf26820ca058dec57c06345943ca6dbbf2.tar.gz
danixxyz-231d29bf26820ca058dec57c06345943ca6dbbf2.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/shortcodes/image.html')
-rw-r--r--themes/danix-xyz-hacker/shortcodes/image.html22
1 files changed, 0 insertions, 22 deletions
diff --git a/themes/danix-xyz-hacker/shortcodes/image.html b/themes/danix-xyz-hacker/shortcodes/image.html
deleted file mode 100644
index 07a698d..0000000
--- a/themes/danix-xyz-hacker/shortcodes/image.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{{- $src := .Get "src" -}}
-{{- $alt := .Get "alt" | default "Image" -}}
-{{- $caption := .Get "caption" -}}
-{{- $class := .Get "class" | default "rounded-lg border border-border/30" -}}
-
-{{- if $src -}}
- <figure class="my-8">
- <img
- src="{{ $src }}"
- alt="{{ $alt }}"
- class="{{ $class }} w-full h-auto"
- loading="lazy"
- />
- {{- if $caption -}}
- <figcaption class="mt-3 text-center text-sm text-text-dim italic">
- {{ $caption }}
- </figcaption>
- {{- end -}}
- </figure>
-{{- else -}}
- {{- errorf "image shortcode: 'src' parameter is required" -}}
-{{- end -}}