aboutsummaryrefslogtreecommitdiff
path: root/yapyap/template.xml
blob: 3333cc8d40ab6d34a73ed6a1cb867aac69115880 (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
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="theme.xsl?v=2"?>
<rss version="2.0">
    <channel>

        <title>{{ .Feed.Author }}</title>
        <link>{{ .Feed.Link }}</link>
        <managingEditor>{{ .Feed.Email }} ({{ .Feed.Author }})</managingEditor>
        <generator>YapYap</generator>

        {{ range $i, $e := .Posts }}
        <item>

            <guid>{{ $i }}</guid>
            <description>{{ .Text | nl2br }}</description>
            <pubDate>{{ .Date }}</pubDate>

            {{if .Image }}
            <enclosure url="{{ .Image }}" type="image/jpeg" />
            {{end}}

        </item>
        {{ end }}

    </channel>
</rss>