]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig
Fix #3448 - pubDate now conformant to Date and Time specifications defined by RFC822
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / common / Entry / entries.xml.twig
CommitLineData
0c83fd59
J
1<?xml version="1.0" encoding="utf-8"?>
2<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/">
3 <channel>
18c38dff
JB
4 <title>wallabag - {{ type }} feed</title>
5 <link>{{ url_html }}</link>
8670250a
JB
6 <link rel="self" href="{{ app.request.uri }}"/>
7 {% if entries.hasPreviousPage -%}
8 <link rel="previous" href="{{ url }}?page={{ entries.previousPage }}"/>
9 {% endif -%}
10 {% if entries.hasNextPage -%}
11 <link rel="next" href="{{ url }}?page={{ entries.nextPage }}"/>
12 {% endif -%}
13 <link rel="last" href="{{ url }}?page={{ entries.nbPages }}"/>
70d73bdd 14 <pubDate>{{ "now"|date(constant('DATE_RSS')) }}</pubDate>
0c83fd59 15 <generator>wallabag</generator>
18c38dff 16 <description>wallabag {{ type }} elements</description>
0c83fd59
J
17
18 {% for entry in entries %}
19
20 <item>
3d995079 21 <title><![CDATA[{{ entry.title|e }}]]></title>
0c83fd59 22 <source url="{{ url('view', { 'id': entry.id }) }}">wallabag</source>
2d899e8d
NL
23 <link>{{ entry.url }}</link>
24 <guid>{{ entry.url }}</guid>
70d73bdd 25 <pubDate>{{ entry.createdAt|date(constant('DATE_RSS')) }}</pubDate>
0c83fd59 26 <description>
389d55f8 27 <![CDATA[{%- if entry.readingTime > 0 -%}{{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': entry.readingTime}) }}{%- else -%}{{ 'entry.list.reading_time_less_one_minute'|trans|raw }}{%- endif %}{{ entry.content|raw -}}]]>
0c83fd59
J
28 </description>
29 </item>
30
31 {% endfor %}
32
33 </channel>
34</rss>