From a67da2b6ff6a1e0a16e8e37013475cb81ad2d6a6 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Thu, 7 Jan 2021 23:52:44 +0100 Subject: [PATCH] New shortcode, uses JS (sadly) but at least it doesn't break the RSS feed --- layouts/_default/single.html | 7 +++++++ layouts/shortcodes/imgthumb.html | 28 ++-------------------------- 2 files changed, 9 insertions(+), 26 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9fdc817..5fa97c5 100755 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -70,4 +70,11 @@ + + + {{ end }} diff --git a/layouts/shortcodes/imgthumb.html b/layouts/shortcodes/imgthumb.html index c9ca77e..084d767 100644 --- a/layouts/shortcodes/imgthumb.html +++ b/layouts/shortcodes/imgthumb.html @@ -5,37 +5,13 @@ {{ $imagethumbnail := $image.Resize $options }} - - - + {{ with .Get - - {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
{{ with (.Get "title") -}}