From cd51353e9b0f5752efbb1e029595f9d9e726a497 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Tue, 12 Jan 2021 17:10:02 -0700 Subject: [PATCH] shortcodes: do not request thumbnails if the image is jpg --- layouts/shortcodes/imgs.html | 4 ++++ layouts/shortcodes/single-title-imgs.html | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/imgs.html b/layouts/shortcodes/imgs.html index a1ddca8..e81337d 100644 --- a/layouts/shortcodes/imgs.html +++ b/layouts/shortcodes/imgs.html @@ -14,7 +14,11 @@ {{ else }} + {{- if eq $extension "png" -}} {{ $title }} + {{- else -}} + {{ $title }} + {{- end -}} {{ end }} {{ if $title }} diff --git a/layouts/shortcodes/single-title-imgs.html b/layouts/shortcodes/single-title-imgs.html index bf1a7ec..2dbf88d 100644 --- a/layouts/shortcodes/single-title-imgs.html +++ b/layouts/shortcodes/single-title-imgs.html @@ -15,7 +15,11 @@ {{ else }} - {{ $subtitle }} + {{- if eq $extension "png" -}} + {{ $title }} + {{- else -}} + {{ $title }} + {{- end -}} {{ end }}