aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Wise <pabs3@bonedaddy.net>2012-02-28 23:14:20 +0800
committerJoey Hess <joey@kitenet.net>2012-03-03 11:01:55 -0400
commit5b9005a8dd33feba93d0c85a7fdeaa2194af5d1a (patch)
treed03eb011e7842a8c0de72913dc35bfb6b776bfa8
parent7f755aa51ea0d9faeba3c49d241e4fed12bcba47 (diff)
downloadikiwiki-5b9005a8dd33feba93d0c85a7fdeaa2194af5d1a.tar
ikiwiki-5b9005a8dd33feba93d0c85a7fdeaa2194af5d1a.tar.gz
Drop the version attribute on the generator tag in Atom feeds.
Removing the version means that rebuilds are reproducible over time. Both the generator tag and its version attribute are optional: http://tools.ietf.org/html/rfc4287#section-4.2.4
-rw-r--r--IkiWiki/Plugin/inline.pm1
-rw-r--r--templates/atompage.tmpl2
2 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index 159cc5def..bdab5793b 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -677,7 +677,6 @@ sub genfeed ($$$$$@) {
guid => $guid,
feeddate => date_3339($lasttime),
feedurl => $feedurl,
- version => $IkiWiki::version,
);
run_hooks(pagetemplate => sub {
shift->(page => $page, destpage => $page,
diff --git a/templates/atompage.tmpl b/templates/atompage.tmpl
index e82b59827..3cdd71d1a 100644
--- a/templates/atompage.tmpl
+++ b/templates/atompage.tmpl
@@ -33,7 +33,7 @@
<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>
+<generator uri="http://ikiwiki.info/">ikiwiki</generator>
<updated><TMPL_VAR FEEDDATE></updated>
<TMPL_VAR CONTENT>
</feed>