Rename the atom_entry templates with .atom suffix
This commit is contained in:
parent
24122c7427
commit
b2d24aad54
2 changed files with 0 additions and 0 deletions
12
layouts/photos/atom_entry.atom
Normal file
12
layouts/photos/atom_entry.atom
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue