Browse Source

trying to get photo feed working again

master
jk 5 years ago
parent
commit
085a6ddeee
  1. 4
      themes/anatole/layouts/partials/taxonomy/photo.html

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

@ -1,9 +1,7 @@
<span class="separator"> <span class="separator">
{{- range $index, $el := . -}} {{- range $index, $el := . -}}
{{ $photo := $s }}
{{ $thumb := replace $photo "-800." "-200."}}
<a href="{{printf "$photo" ( . | urlize) | relLangURL }}"> <img class="p-photo" src="{{ printf "$thumb" ( . | urlize ) | relLangURL }}" /></a>
<a href="{{printf "$s" ( . | urlize) | relLangURL }}"> <img class="p-photo" src="{{ printf replace "$s" "-800." "-200." ( . | urlize ) | relLangURL }}" /></a>
{{- end -}} {{- end -}}
</span> </span>