erynwells.me/layouts/photos/rss_item.rss
Eryn Wells e263b3cb41 Include all photos as links in the RSS and Atom feeds, instead of just the thumbnail
- 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
2022-11-29 09:06:18 -08:00

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>