Always include <content> in photos atom entry

This commit is contained in:
Eryn Wells 2022-11-03 17:10:48 -07:00
parent 9051fce9aa
commit c4db9126b5

View file

@ -2,7 +2,6 @@
<entry>
{{ partial "atom_entry_metadata.xml" . }}
<link rel="enclosure" href="{{ $thumbnail.Permalink }}" type="{{ $thumbnail.MediaType }}" length="{{ len $thumbnail.Content }}" />
{{ if .Content }}
{{- $inlineThumbnail := partial "images/photo_thumbnail.html" (dict "Page" . "Width" 1280 "Height" 1280) -}}
<content type="html">{{ `<![CDATA[` | safeHTML }}
{{- with $inlineThumbnail -}}
@ -10,5 +9,4 @@
{{- end -}}
{{- .Content -}}
]]></content>
{{ end }}
</entry>