Browse Source

trying to get photo feed working again

master
jk 5 years ago
parent
commit
2bf22a5a23
  1. 5
      themes/anatole/layouts/partials/taxonomy/photo.html

5
themes/anatole/layouts/partials/taxonomy/photo.html

@ -1,7 +1,8 @@
<span class="separator"> <span class="separator">
{{- range $index, $el := . -}} {{- range $index, $el := . -}}
{{ $thumbnail := slice .Params.thumbnail }}
<img class="p-photo" src="{{ index $thumbnail 0 ( . | urlize ) | relLangURL }}" />
{{ $thumbnails := slice .Params.thumbnail }}
{{ $thumnail = index $thumbnails 0}}
<img class="p-photo" src="{{ printf "$thumbnail" ( . | urlize ) | relLangURL }}" />
{{- end -}} {{- end -}}
</span> </span>