web commit by http://id.inelegant.org/: Markdown ate my previous attempt at pasting...
[ikiwiki.git] / doc / patchqueue / atom-category-fix.mdwn
1 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.
2
3     Index: templates/atomitem.tmpl
4     ===================================================================
5     --- templates/atomitem.tmpl     (revision 2640)
6     +++ templates/atomitem.tmpl     (working copy)
7     @@ -8,7 +8,7 @@
8             <link href="<TMPL_VAR PERMALINK>"/>
9             <TMPL_IF NAME="CATEGORIES">
10             <TMPL_LOOP NAME="CATEGORIES">
11     -       <category><TMPL_VAR CATEGORY></category>
12     +       <category term="<TMPL_VAR CATEGORY>" />
13             </TMPL_LOOP>
14             </TMPL_IF>
15             <updated><TMPL_VAR DATE_3339></updated>