aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-09 02:32:03 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-09 02:32:03 -0500
commit405e8a703126cc5de426063dedbd2394b747782a (patch)
treef90bfb5f28f56bdd21cfd1c3b4bc5f40dd116aa5 /templates
parenta654a72fda2be74857a9b8074eb0c2f944907b69 (diff)
downloadikiwiki-405e8a703126cc5de426063dedbd2394b747782a.tar
ikiwiki-405e8a703126cc5de426063dedbd2394b747782a.tar.gz
include license/copyright/author info if available
Diffstat (limited to 'templates')
-rw-r--r--templates/atompage.tmpl26
1 files changed, 25 insertions, 1 deletions
diff --git a/templates/atompage.tmpl b/templates/atompage.tmpl
index 1bca3e7f8..acc4737c1 100644
--- a/templates/atompage.tmpl
+++ b/templates/atompage.tmpl
@@ -5,8 +5,32 @@
<link href="<TMPL_VAR PAGEURL>"/>
<link href="<TMPL_VAR FEEDURL>" rel="self"/>
<author>
-<name><TMPL_VAR WIKINAME></name>
+<TMPL_IF NAME="AUTHOR">
+ <name><TMPL_VAR AUTHOR></name>
+<TMPL_ELSE>
+ <name><TMPL_VAR WIKINAME></name>
+</TMPL_IF>
</author>
+<TMPL_IF NAME="COPYRIGHT">
+ <rights type="xhtml" xml:lang="en">
+ <div xmlns="http://www.w3.org/1999/xhtml">
+ <TMPL_IF NAME="LICENSE">
+ <TMPL_VAR LICENSE>
+ <TMPL_VAR COPYRIGHT>
+ <TMPL_ELSE>
+ <TMPL_VAR COPYRIGHT>
+ </TMPL_IF>
+ </div>
+ </rights>
+<TMPL_ELSE>
+ <TMPL_IF NAME="LICENSE">
+ <rights type="xhtml" xml:lang="en">
+ <div xmlns="http://www.w3.org/1999/xhtml">
+ <TMPL_VAR LICENSE>
+ </div>
+ </rights>
+ </TMPL_IF>
+</TMPL_IF>
<id><TMPL_VAR PAGEURL></id>
<subtitle type="html"><TMPL_VAR FEEDDESC ESCAPE=HTML></subtitle>
<generator uri="http://ikiwiki.info/" version="<TMPL_VAR VERSION>">ikiwiki</generator>