- Move photo_thumbnail.html to photos/thumbnail.html - Add a photos/list.html partial that returns a list of photos for the current page - Use the template above everywhere we need a list of photos for the page
11 lines
480 B
Text
11 lines
480 B
Text
{{- $thumbnail := partial "photos/thumbnail.html" . -}}
|
|
<entry>
|
|
{{ partial "atom_entry_metadata.xml" . }}
|
|
<link rel="enclosure" href="{{ $thumbnail.Permalink }}" type="{{ $thumbnail.MediaType }}" length="{{ len $thumbnail.Content }}" />
|
|
<content type="html">{{ `<![CDATA[` | safeHTML }}
|
|
{{- range partial "photos/list.html" . -}}
|
|
<img src="{{ .Permalink }}"{{ with .Params.alt }} alt="{{ . }}"{{ end }}>
|
|
{{- end -}}
|
|
{{- .Content -}}
|
|
]]></content>
|
|
</entry>
|