From 0e4e0963a00d416eb4293e9060eff40c09fa8c53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 1 Apr 2025 17:43:09 +0300 Subject: [PATCH] img: add link to the original --- layouts/shortcodes/img.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 469e4ad..9034afa 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -29,7 +29,7 @@ care about is 700*4=2800px. {{ $w2800 := $src.Resize (print "2800x webp " $hint ) }}
- {{ with .Get "link" }}{{ end }} + - {{ if .Get "link" }}{{ end }} + {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr") }}
{{ if isset .Params "title" }}

{{ .Get "title" }}

{{ end }}