{{- $thumbnail := partial "photos/thumbnail.html" (dict "Page" . "Width" nil "Height" nil) -}}
<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>
