aboutsummaryrefslogtreecommitdiff
path: root/yapyap/template.xml
diff options
context:
space:
mode:
Diffstat (limited to 'yapyap/template.xml')
-rw-r--r--yapyap/template.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/yapyap/template.xml b/yapyap/template.xml
new file mode 100644
index 0000000..e90cabb
--- /dev/null
+++ b/yapyap/template.xml
@@ -0,0 +1,26 @@
1<?xml version="1.0" encoding="utf-8"?>
2<?xml-stylesheet type="text/xsl" href="theme.xsl"?>
3<rss version="2.0">
4 <channel>
5
6 <title>{{ .Feed.Author }}</title>
7 <link>{{ .Feed.Link }}</link>
8 <managingEditor>{{ .Feed.Email }} ({{ .Feed.Author }})</managingEditor>
9 <generator>YapYap</generator>
10
11 {{ range $i, $e := .Posts }}
12 <item>
13
14 <guid>aaa{{ $i }}</guid>
15 <description>{{ .Text }}</description>
16 <pubDate>{{ .Date }}</pubDate>
17
18 {{if .Image }}
19 <enclosure url="{{ .Image }}" type="image/jpeg" />
20 {{end}}
21
22 </item>
23 {{ end }}
24
25 </channel>
26</rss>