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
master
Paul Wise 2012-02-28 23:14:20 +08:00 committed by Joey Hess
parent 7f755aa51e
commit 5b9005a8dd
2 changed files with 1 additions and 2 deletions

View File

@ -677,7 +677,6 @@ sub genfeed ($$$$$@) {
guid => $guid, guid => $guid,
feeddate => date_3339($lasttime), feeddate => date_3339($lasttime),
feedurl => $feedurl, feedurl => $feedurl,
version => $IkiWiki::version,
); );
run_hooks(pagetemplate => sub { run_hooks(pagetemplate => sub {
shift->(page => $page, destpage => $page, shift->(page => $page, destpage => $page,

View File

@ -33,7 +33,7 @@
<id><TMPL_VAR PAGEURL></id> <id><TMPL_VAR PAGEURL></id>
</TMPL_IF> </TMPL_IF>
<subtitle type="html"><TMPL_VAR FEEDDESC ESCAPE=HTML></subtitle> <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> <updated><TMPL_VAR FEEDDATE></updated>
<TMPL_VAR CONTENT> <TMPL_VAR CONTENT>
</feed> </feed>