Rename the atom_entry templates with .atom suffix

This commit is contained in:
Eryn Wells 2022-11-05 13:20:26 -07:00
parent 24122c7427
commit b2d24aad54
2 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{{- $thumbnail := partial "images/photo_thumbnail.html" . -}}
<entry>
{{ partial "atom_entry_metadata.xml" . }}
<link rel="enclosure" href="{{ $thumbnail.Permalink }}" type="{{ $thumbnail.MediaType }}" length="{{ len $thumbnail.Content }}" />
{{- $inlineThumbnail := partial "images/photo_thumbnail.html" (dict "Page" . "Width" 1280 "Height" 1280) -}}
<content type="html">{{ `<![CDATA[` | safeHTML }}
{{- with $inlineThumbnail -}}
<img src="{{ .Permalink }}">
{{- end -}}
{{- .Content -}}
]]></content>
</entry>