summaryrefslogtreecommitdiffstats
path: root/templates/feed.xml
blob: d760b0495ebb7585e5fa0a2f1eefa25c1d41c7e8 (plain) (blame)
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
49
50
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>$if(is_home)$$else$$title$ – $endif$$site.title$</title>
    <link href="$feed.url.full$" rel="self"/>
    <link href="$url.full$"/>
    <updated>$feed.last_update.rfc3339$</updated>
    <id>$url.full$</id>
    $for(author)$
        <author>
            <name>$it.name$</name>
            $if(it.email)$
                <email>$it.email$</email>
            $endif$
        </author>
    $endfor$

    $for(pages)$
        $for(it.all)$
            $if(it.date.rfc3339)$
                <entry>
                    <id>$it.url.full$</id>
                    <title type="html"><![CDATA[$it.title$]]></title>
                    $if(it.author)$
                        $for(it.author)$
                            <author>
                                <name>$it.name$</name>
                                $if(it.email)$
                                    <email>$it.email$</email>
                                $endif$
                            </author>
                        $endfor$
                    $else$
                        $for(author)$
                            <author>
                                <name>$author.name$</name>
                                $if(author.email)$
                                    <email>$author.email$</email>
                                $endif$
                            </author>
                        $endfor$
                    $endif$
                    <link href="$it.url.full$"/>
                    <published>$it.date.rfc3339$</published>
                    <updated>$it.date.rfc3339$</updated>
                    $-- <content>$it.plain$</content>
                </entry>
            $endif$
        $endfor$
    $endfor$
</feed>