Merge branch 'blog-photo-link' into 'master'

Add link to original image to blogPhoto

Closes #13

See merge request patek-devs/patek.cz!19
This commit is contained in:
Vojtěch Káně 2020-05-05 11:43:31 +00:00
commit 6166306025

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>