* Patch to fix validaton of atom feeds by fixing the category tags.

master
joey 2007-02-19 04:42:30 +00:00
parent 644ba425c8
commit 8bfcca5b47
3 changed files with 7 additions and 16 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ikiwiki (1.44) UNRELEASED; urgency=low
* Patch to fix validaton of atom feeds by fixing the category tags.
-- Joey Hess <joeyh@debian.org> Sun, 18 Feb 2007 23:40:32 -0500
ikiwiki (1.43) unstable; urgency=low
* Allow plugins to add new types of tests that can be used in PageSpecs.

View File

@ -1,15 +0,0 @@
The Atom feed fails validation at http://feedvalidator.org/ because the `<category>` tags are syntactically incorrect ([spec](http://www.atomenabled.org/developers/syndication/atom-format-spec.php#element.category)). With this patch it validates.
Index: templates/atomitem.tmpl
===================================================================
--- templates/atomitem.tmpl (revision 2640)
+++ templates/atomitem.tmpl (working copy)
@@ -8,7 +8,7 @@
<link href="<TMPL_VAR PERMALINK>"/>
<TMPL_IF NAME="CATEGORIES">
<TMPL_LOOP NAME="CATEGORIES">
- <category><TMPL_VAR CATEGORY></category>
+ <category term="<TMPL_VAR CATEGORY>" />
</TMPL_LOOP>
</TMPL_IF>
<updated><TMPL_VAR DATE_3339></updated>

View File

@ -8,7 +8,7 @@
<link href="<TMPL_VAR PERMALINK>"/>
<TMPL_IF NAME="CATEGORIES">
<TMPL_LOOP NAME="CATEGORIES">
<category><TMPL_VAR CATEGORY></category>
<category term="<TMPL_VAR CATEGORY>" />
</TMPL_LOOP>
</TMPL_IF>
<updated><TMPL_VAR DATE_3339></updated>