blob: 8ea9797316a2e4351c45e3146f17f43ff15c882f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
---
{{ range $key, $value := . -}}
{{- if or
(eq $key "author")
(eq $key "date")
(eq $key "tags")
-}}
{{- $key }}: {{ $value }}
{{ end -}}
{{ end -}}
feed:
{{ range $key, $value := . -}}
{{- if and
(ne $key "author")
(ne $key "content")
(ne $key "date")
(ne $key "tags")
-}}
{{ print " " }}{{- $key }}: {{ $value }}
{{ end -}}
{{ end -}}
---
{{ .content
| replaceRE "{" "{"
| replaceRE "}" "}"
}} [Read More →]({{ .link }})
{{ with .enclosure -}}
{{- $author := "default" -}}
{{- with $.author -}}
{{ $author = . }}
{{- end -}}
{{- $description := "Image/Picture" -}}
{{- with $.description -}}
{{ $description = . | htmlEscape }}
{{- end -}}
{{- with $enclosure := resources.GetRemote . -}}
{{- $enclosure = .Content | resources.FromString (print $author "/media/" ($enclosure | urlize)) -}}
![{{ $description }}](/{{ print $author "/media/" (path.Base ($enclosure.Resize "600x").RelPermalink) }} "
{{ $description }}"
)
{{- end -}}
{{- end }}
|