|
|
@ -20,15 +20,14 @@ |
|
|
|
{{ .Content }} |
|
|
|
{{ if eq .Type "photo"}} |
|
|
|
<section class="photogrid"> |
|
|
|
{{$link := .Permalink}} |
|
|
|
{{$summary := .Content}} |
|
|
|
{{ range .Page.Params.Photo }} |
|
|
|
<a class="u-url" href="{{ . }}"> |
|
|
|
<picture> |
|
|
|
<source media="max-width:960px" srcset="{{ . }}"> |
|
|
|
<source media="max-width:480px" srcset="{{ replace . "800." "300."}}"> |
|
|
|
<img class="u-photo thumb" src="{{ replace . "800." "300."}}" srcset="{{ . }} 960w, {{ replace . "800." "300."}} 480w"/> |
|
|
|
</picture> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{ if isset . "value" }} |
|
|
|
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{ $summary }}" alt="{{ .alt }}"/></a> |
|
|
|
{{ else }} |
|
|
|
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace . "800." "300."}}" title="{{ $summary }}" alt="Alt not yet added, will fix!"/></a> |
|
|
|
{{end}}{{end}} |
|
|
|
</section> |
|
|
|
{{end}} |
|
|
|
</section><br/> |
|
|
|