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 }}