diff options
Diffstat (limited to 'templates/feed_entry.xml')
-rw-r--r-- | templates/feed_entry.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/feed_entry.xml b/templates/feed_entry.xml new file mode 100644 index 0000000..f4c5d47 --- /dev/null +++ b/templates/feed_entry.xml | |||
@@ -0,0 +1,30 @@ | |||
1 | <entry> | ||
2 | <id>$it.url.abs$</id> | ||
3 | <title>$it.title$</title> | ||
4 | <link rel="alternate" href="$it.url.abs$"/> | ||
5 | $if(it.author)$ | ||
6 | $for(it.author)$ | ||
7 | <author> | ||
8 | <name>$it.name$</name> | ||
9 | $if(it.email)$ | ||
10 | <email>$it.email$</email> | ||
11 | $endif$ | ||
12 | </author> | ||
13 | $endfor$ | ||
14 | $else$ | ||
15 | $for(author)$ | ||
16 | <author> | ||
17 | <name>$author.name$</name> | ||
18 | $if(author.email)$ | ||
19 | <email>$author.email$</email> | ||
20 | $endif$ | ||
21 | </author> | ||
22 | $endfor$ | ||
23 | $endif$ | ||
24 | $if(it.date)$ | ||
25 | <published>$it.date.rfc3339$</published> | ||
26 | $endif$ | ||
27 | $if(it.last_update)$ | ||
28 | <updated>$it.last_update.rfc3339$</updated> | ||
29 | $endif$ | ||
30 | </entry> | ||