# HG changeset patch # User Goffi # Date 1516382448 -3600 # Node ID e8955d01ad0c59b97dc611de64f26d2afc532d23 # Parent 94b5806b9e2f6e281aa0331d112e0f661d3127ce blog/atom: Atom feed template diff -r 94b5806b9e2f -r e8955d01ad0c default/blog/atom.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/default/blog/atom.xml Fri Jan 19 18:20:48 2018 +0100 @@ -0,0 +1,45 @@ + + + {% if title is defined %} + {{title}} + {% elif target_profile is defined %} + {% trans name=target_profile%}{{name}}'s blog{% endtrans %} + {% else %} + {% trans app_name=C.APP_NAME%}{{app_name}} blog{% endtrans %} + {% endif %} + + + + {{xmpp_uri}} + {{updated|date_fmt('iso')}} + {% for item in items %} + + {% if item.title_xhtml %} + {{item.title_xhtml}} + {% else %} + {{item.title|default(item.content|truncate(40, True, '…'))}} + {% endif %} + + + {{item.uri}} + {{item.updated|date_fmt('iso')}} + {{item.published|date_fmt('iso')}} + + {{item.author}} + xmpp:{{item.author_jid}} + + {% for tag in item.tags %} + + {% endfor %} + {% if item.content_xhtml %} + + {{item.content_xhtml}} + + {% else %} + + {{item.content_txt}} + + {% endif %} + + {% endfor %} +