summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSimon McVittie <http://smcv.pseudorandom.co.uk/>2008-07-12 15:20:28 +0100
committerSimon McVittie <http://smcv.pseudorandom.co.uk/>2008-07-12 17:09:41 +0100
commit2bd8ada5a619a1c32bf19f44e4f96e083ceb17b8 (patch)
tree214638dd92ab21523cda104d8ce19fad96f27d10 /templates
parent50ec532bba1b4b319e598d8d424e79457465946a (diff)
Accept [[!inline ... atomid="..."]] and use it to populate the feed's Atom <id>.
This is often the same as the feed's <link> (in which case it can be omitted) but sometimes it's a urn:uuid: URN instead.
Diffstat (limited to 'templates')
-rw-r--r--templates/atompage.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/atompage.tmpl b/templates/atompage.tmpl
index b7ba74f47..9ec7df435 100644
--- a/templates/atompage.tmpl
+++ b/templates/atompage.tmpl
@@ -31,7 +31,11 @@
</rights>
</TMPL_IF>
</TMPL_IF>
-<id><TMPL_VAR PAGEURL></id>
+<TMPL_IF NAME="ATOMID">
+ <id><TMPL_VAR ATOMID></id>
+<TMPL_ELSE>
+ <id><TMPL_VAR PAGEURL></id>
+</TMPL_IF>
<subtitle type="html"><TMPL_VAR FEEDDESC ESCAPE=HTML></subtitle>
<generator uri="http://ikiwiki.info/" version="<TMPL_VAR VERSION>">ikiwiki</generator>
<updated><TMPL_VAR FEEDDATE></updated>