Always include <content> in photos atom entry
This commit is contained in:
parent
9051fce9aa
commit
c4db9126b5
1 changed files with 0 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue