- 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
10 lines
382 B
XML
10 lines
382 B
XML
{{- $thumbnail := partial "photos/thumbnail.html" (dict "Page" . "Width" 1280 "Height" 1280) -}}
|
|
<item>
|
|
{{ partial "rss_item_metadata.rss" . }}
|
|
<description>{{ `<![CDATA[` | safeHTML }}
|
|
{{- range (partial "photos/list.html" .) -}}
|
|
<img src="{{ .Permalink }}"{{ with .Params.alt }} alt="{{ . }}"{{ end }}>
|
|
{{- end -}}
|
|
{{- .Content -}}
|
|
]]></description>
|
|
</item>
|