templates/blog/entry.atom (1066B) - raw
1 <entry xmlns="http://www.w3.org/2005/Atom"
2 xmlns:py="http://genshi.edgewall.org/"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 py:attrs="(item.language is not None) and {'xml:lang': item.language} or {}">
5
6 <?python
7 import urllib
8 from viewutils import ATOM_TIME_FORMAT
9 ?>
10
11 <id>${item.guid}</id>
12 <published>${item.publication_date.strftime(ATOM_TIME_FORMAT)}</published>
13 <updated>${item.modified_date.strftime(ATOM_TIME_FORMAT)}</updated>
14 <author>
15 <name>${config.get('global', 'name')}</name>
16 <email>${config.get('global', 'email')}</email>
17 </author>
18 <category py:for="tag in item.tags" scheme="${config.get('global', 'url_base')}tags/" term="${tag}" />
19 <link rel="alternate" href="${config.get('global', 'url_base')}blog/${urllib.quote(item.id.encode('utf8'), '')}" />
20 <title type="text">${item.title.striptags()}</title>
21 <content type="xhtml" xml:base="${config.get('global', 'url_base')}blog/${urllib.quote(item.id.encode('utf8'), '')}">
22 <div xmlns="http://www.w3.org/1999/xhtml">
23 ${item.body}
24 </div>
25 </content>
26
27 </entry>