A custom atom_entry.atom template for photostream posts
This commit is contained in:
parent
9620d4e8b5
commit
cf0aa69a87
1 changed files with 11 additions and 0 deletions
11
layouts/photos/atom_entry.atom
Normal file
11
layouts/photos/atom_entry.atom
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{- $thumbnail := partial "photostream/thumbnail.html" (dict "Page" . "Width" nil "Height" nil) -}}
|
||||
<entry>
|
||||
{{ partial "feeds/atom/entry_metadata.xml" . }}
|
||||
<link rel="enclosure" href="{{ $thumbnail.Permalink }}" type="{{ $thumbnail.MediaType }}" length="{{ len $thumbnail.Content }}" />
|
||||
<content type="html">{{ `<![CDATA[` | safeHTML }}
|
||||
{{- range partial "photos/list.html" . -}}
|
||||
<img src="{{ .Permalink }}"{{ with .Params.alt }} alt="{{ . }}"{{ end }}>
|
||||
{{- end -}}
|
||||
{{- .Content -}}
|
||||
]]></content>
|
||||
</entry>
|
Loading…
Add table
Add a link
Reference in a new issue