templates/reading/entry.atom (952B) - 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 5 <?python 6 from viewutils import ATOM_TIME_FORMAT 7 ?> 8 9 <id>${item.guid}</id> 10 <published>${item.publication_date.strftime(ATOM_TIME_FORMAT)}</published> 11 <updated>${item.modified_date.strftime(ATOM_TIME_FORMAT)}</updated> 12 <author> 13 <name>${config.get('global', 'name')}</name> 14 <email>${config.get('global', 'email')}</email> 15 </author> 16 <category py:for="tag in item.tags" scheme="${config.get('global', 'url_base')}tags/" term="${tag}" /> 17 <title type="text">${item.title.striptags()} by ${item.author}</title> 18 <summary py:if="item.rating" type="text">${item.rating} stars</summary> 19 <content type="xhtml"> 20 <div xmlns="http://www.w3.org/1999/xhtml"> 21 <p><a href="${item.url}">${item.title}</a> by ${item.author}</p> 22 <p py:if="item.rating">${item.rating} stars</p> 23 </div> 24 </content> 25 26 </entry>