From d8b5023d7269fd67374cf65a1372e374b41964e0 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sat, 14 Feb 2026 13:06:23 +0300 Subject: New post, didaceted theme --- themes/neonxp/layouts/shortcodes/img.html | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 themes/neonxp/layouts/shortcodes/img.html (limited to 'themes/neonxp/layouts/shortcodes/img.html') diff --git a/themes/neonxp/layouts/shortcodes/img.html b/themes/neonxp/layouts/shortcodes/img.html deleted file mode 100644 index 994e30f..0000000 --- a/themes/neonxp/layouts/shortcodes/img.html +++ /dev/null @@ -1,21 +0,0 @@ -{{- $alt := .Get "alt" -}} -{{- $res := .Page.Resources.Get (.Get "src") -}} - -{{- $ws := slice 480 800 -}} -{{- $srcset := slice -}} -{{- range $ws -}} -{{- if (le . $res.Width) -}} -{{- $w := printf "%dx" . -}} -{{- $url := ($res.Resize $w).RelPermalink | safeURL -}} -{{- $fmt := printf "%s %dw" $url . -}} -{{- $srcset = $srcset | append $fmt -}} -{{- end -}} -{{- end -}} - -{{- $set := delimit $srcset "," -}} - -
- {{ $alt }} -
{{ $alt }}
-
\ No newline at end of file -- cgit v1.2.3