aboutsummaryrefslogtreecommitdiff
path: root/yapyap/template.xml
blob: e90cabb5b76df436612cfd7d314b20c19a8e6b2a (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"?>
<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>aaa{{ $i }}</guid>
            <description>{{ .Text }}</description>
            <pubDate>{{ .Date }}</pubDate>

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

        </item>
        {{ end }}

    </channel>
</rss>