diff options
author | Volpeon <git@volpeon.ink> | 2020-12-30 09:06:31 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2020-12-30 09:06:31 +0100 |
commit | 3ab8981195dbbdc553fbe1a14178b6793a81fa3b (patch) | |
tree | eee7ce7de75903d0140245dd1d39686c73113bd3 /templates/feed.xml | |
parent | Fixed regression: Category showed up in child pages as well (diff) | |
download | volpeon.ink-3ab8981195dbbdc553fbe1a14178b6793a81fa3b.tar.gz volpeon.ink-3ab8981195dbbdc553fbe1a14178b6793a81fa3b.tar.bz2 volpeon.ink-3ab8981195dbbdc553fbe1a14178b6793a81fa3b.zip |
Revert to old category metadata collection, add support for authors
Diffstat (limited to 'templates/feed.xml')
-rw-r--r-- | templates/feed.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/feed.xml b/templates/feed.xml index 68d2fc4..f1439eb 100644 --- a/templates/feed.xml +++ b/templates/feed.xml | |||
@@ -5,6 +5,14 @@ | |||
5 | <link href="$url.full$"/> | 5 | <link href="$url.full$"/> |
6 | <updated>$feed.last_update.rfc3339$</updated> | 6 | <updated>$feed.last_update.rfc3339$</updated> |
7 | <id>$url.full$</id> | 7 | <id>$url.full$</id> |
8 | $for(author)$ | ||
9 | <author> | ||
10 | <name>$it.name$</name> | ||
11 | $if(it.email)$ | ||
12 | <email>$it.email$</email> | ||
13 | $endif$ | ||
14 | </author> | ||
15 | $endfor$ | ||
8 | 16 | ||
9 | $for(pages)$ | 17 | $for(pages)$ |
10 | $for(it.all)$ | 18 | $for(it.all)$ |
@@ -12,6 +20,25 @@ | |||
12 | <entry> | 20 | <entry> |
13 | <id>$it.url.full$</id> | 21 | <id>$it.url.full$</id> |
14 | <title type="html"><![CDATA[$it.title$]]></title> | 22 | <title type="html"><![CDATA[$it.title$]]></title> |
23 | $if(it.author)$ | ||
24 | $for(it.author)$ | ||
25 | <author> | ||
26 | <name>$it.name$</name> | ||
27 | $if(it.email)$ | ||
28 | <email>$it.email$</email> | ||
29 | $endif$ | ||
30 | </author> | ||
31 | $endfor$ | ||
32 | $else$ | ||
33 | $for(author)$ | ||
34 | <author> | ||
35 | <name>$author.name$</name> | ||
36 | $if(author.email)$ | ||
37 | <email>$author.email$</email> | ||
38 | $endif$ | ||
39 | </author> | ||
40 | $endfor$ | ||
41 | $endif$ | ||
15 | <link href="$it.url.full$"/> | 42 | <link href="$it.url.full$"/> |
16 | <published>$it.date.rfc3339$</published> | 43 | <published>$it.date.rfc3339$</published> |
17 | <updated>$it.date.rfc3339$</updated> | 44 | <updated>$it.date.rfc3339$</updated> |