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>
|
<entry>
|
||||||
{{ partial "atom_entry_metadata.xml" . }}
|
{{ partial "atom_entry_metadata.xml" . }}
|
||||||
<link rel="enclosure" href="{{ $thumbnail.Permalink }}" type="{{ $thumbnail.MediaType }}" length="{{ len $thumbnail.Content }}" />
|
<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) -}}
|
{{- $inlineThumbnail := partial "images/photo_thumbnail.html" (dict "Page" . "Width" 1280 "Height" 1280) -}}
|
||||||
<content type="html">{{ `<![CDATA[` | safeHTML }}
|
<content type="html">{{ `<![CDATA[` | safeHTML }}
|
||||||
{{- with $inlineThumbnail -}}
|
{{- with $inlineThumbnail -}}
|
||||||
|
@ -10,5 +9,4 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- .Content -}}
|
{{- .Content -}}
|
||||||
]]></content>
|
]]></content>
|
||||||
{{ end }}
|
|
||||||
</entry>
|
</entry>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue