Browse Source

trying to get photo feed working again

master
jk 5 years ago
parent
commit
e1da7705a4
  1. 2
      layouts/_default/section.html
  2. 3
      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" .Photo .Thumbnail }}{{ end }}
{{ with .Page.Params.Photo }}{{ partial "taxonomy/photo.html" . }}{{ 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>

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

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