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
This commit is contained in:
Eryn Wells 2022-11-29 09:06:18 -08:00
parent ab172e1e9e
commit e263b3cb41
7 changed files with 21 additions and 13 deletions

View file

@ -1,8 +1,10 @@
{{- $thumbnail := partial "images/photo_thumbnail.html" (dict "Page" . "Width" 1280 "Height" 1280) -}}
{{- $thumbnail := partial "photos/thumbnail.html" (dict "Page" . "Width" 1280 "Height" 1280) -}}
<item>
{{ partial "rss_item_metadata.rss" . }}
<description>{{ `<![CDATA[` | safeHTML }}
<img src="{{ $thumbnail.Permalink }}">
{{ .Content }}
{{- range (partial "photos/list.html" .) -}}
<img src="{{ .Permalink }}"{{ with .Params.alt }} alt="{{ . }}"{{ end }}>
{{- end -}}
{{- .Content -}}
]]></description>
</item>