Browse Source

trying to get photo feed working again

master
jk 4 years ago
parent
commit
ded2224f70
  1. 2
      layouts/_default/section.html
  2. 4
      themes/anatole/layouts/partials/taxonomy/photo.html

2
layouts/_default/section.html

@ -10,7 +10,7 @@
<aside>
{{if eq .Type "article" }}<a href="{{ .RelPermalink }}" class="link u-url"><h3 class="">{{ .Title }}</h3></a><b>{{ .Description }}</b>{{ end }}
<div class="e-content">
{{ with .Page.Params.Photo }}{{ partial "taxonomy/photo.html" . }}{{ end }}
{{ with .Page.Params.Photo }}{{ partial "taxonomy/photo.html" .Photo .Thumbnail }}{{ end }}
{{ .Content }}
</div>
<a href="{{ .RelPermalink }}" class="link u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a>

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

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