diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-22 12:43:22 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-22 12:43:22 +0200 |
| commit | 5b476f8905f411768e23cb01d577a60e5a5fd725 (patch) | |
| tree | 0a08cc83d809dbea714f52826e822501ee7c0165 /themes/danix-xyz-hacker/layouts/shortcodes/image.html | |
| parent | 082e9246ffe453031894d32d3cee9d5d1bf2b67a (diff) | |
| download | danixxyz-5b476f8905f411768e23cb01d577a60e5a5fd725.tar.gz danixxyz-5b476f8905f411768e23cb01d577a60e5a5fd725.zip | |
chore: extract theme into git submodule (danix2-hugo-theme)
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/shortcodes/image.html')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/shortcodes/image.html | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/image.html b/themes/danix-xyz-hacker/layouts/shortcodes/image.html deleted file mode 100644 index 84dec3f..0000000 --- a/themes/danix-xyz-hacker/layouts/shortcodes/image.html +++ /dev/null @@ -1,23 +0,0 @@ -{{- $src := .Get "src" -}} -{{- $alt := .Get "alt" | default "Image" -}} -{{- $caption := .Get "caption" -}} -{{- $class := .Get "class" | default "w-full h-auto rounded-lg border border-border" -}} -{{- $link := .Get "link" -}} -{{- $figureClass := .Get "figure-class" -}} - -{{- if or $src .Inner -}} - <figure class="my-8{{- with $figureClass }} {{ . }}{{- end -}}"> - {{- if .Inner -}} - {{- .Inner -}} - {{- else -}} - {{- if $link -}}<a href="{{ $link }}">{{- end -}} - <img src="{{ $src }}" alt="{{ $alt }}" class="{{ $class }}" loading="lazy" /> - {{- if $link -}}</a>{{- end -}} - {{- end -}} - {{- if $caption -}} - <figcaption class="mt-3 text-center text-sm text-text-dim italic">{{ $caption }}</figcaption> - {{- end -}} - </figure> -{{- else -}} - {{- errorf "image shortcode: 'src' parameter or inner content is required" -}} -{{- end -}} |
