Add link to original image to blogPhoto shortcode

We might decide to link to still slightly compressed version, but this
currently works fine.
This commit is contained in:
Vojtěch Káně 2020-05-05 13:01:23 +02:00
parent db795989ac
commit f031cb9826

View File

@ -46,6 +46,6 @@ where possible named params are:
{{- end -}}
<figure>
<img src="{{ $largest.RelPermalink }}" alt="{{ $alt }}" srcset="{{ delimit $srcset ", " }}">
<a href="{{ $img.RelPermalink }}"><img src="{{ $largest.RelPermalink }}" alt="{{ $alt }}" srcset="{{ delimit $srcset ", " }}"></a>
{{ if (ne $caption false) }}<figcaption>{{ $caption }}</figcaption>{{ end }}
</figure>