aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig
index 0a0131cd..f5b84355 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig
@@ -1,12 +1,19 @@
1<?xml version="1.0" encoding="utf-8"?> 1<?xml version="1.0" encoding="utf-8"?>
2<feed xmlns="http://www.w3.org/2005/Atom"> 2<feed xmlns="http://www.w3.org/2005/Atom">
3 <title>wallabag — {{type}} feed</title> 3 {% if type != 'tag' %}
4 <subtitle type="html">RSS feed for {{ type }} entries</subtitle> 4 <title>wallabag — {{type}} feed</title>
5 <subtitle type="html">Atom feed for {{ type }} entries</subtitle>
6 <id>wallabag:{{ domainName | removeScheme | removeWww }}:{{ user }}:{{ type }}</id>
7 <link rel="alternate" type="text/html" href="{{ url(type) }}"/>
8 {% else %}
9 <id>wallabag:{{ domainName | removeScheme | removeWww }}:{{ user }}:{{ type }}:{{ tag }}</id>
10 <link rel="alternate" type="text/html" href="{{ url('tag_entries', {'slug': tag}) }}"/>
11 <title>wallabag — {{type}} {{ tag }} feed</title>
12 <subtitle type="html">Atom feed for entries tagged with {{ tag }}</subtitle>
13 {% endif %}
5 {% if entries | length > 0 %} 14 {% if entries | length > 0 %}
6 <updated>{{ (entries | first).createdAt | date('c') }}</updated> {# Indicates the last time the feed was modified in a significant way. #} 15 <updated>{{ (entries | first).createdAt | date('c') }}</updated> {# Indicates the last time the feed was modified in a significant way. #}
7 {% endif %} 16 {% endif %}
8 <id>wallabag:{{ domainName | removeScheme | removeWww }}:{{ user }}:{{ type }}</id>
9 <link rel="alternate" type="text/html" href="{{ url(type) }}"/>
10 <link rel="self" type="application/atom+xml" href="{{ app.request.uri }}"/> 17 <link rel="self" type="application/atom+xml" href="{{ app.request.uri }}"/>
11 {% if entries.hasPreviousPage %} 18 {% if entries.hasPreviousPage %}
12 <link rel="previous" href="{{ url }}/{{ entries.previousPage }}"/> 19 <link rel="previous" href="{{ url }}/{{ entries.previousPage }}"/>