]>
Commit | Line | Data |
---|---|---|
1 | <?xml version="1.0" encoding="utf-8"?> | |
2 | <feed xmlns="http://www.w3.org/2005/Atom"> | |
3 | {% if type != 'tag' %} | |
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 %} | |
14 | {% if entries | length > 0 %} | |
15 | <updated>{{ (entries | first).createdAt | date('c') }}</updated> {# Indicates the last time the feed was modified in a significant way. #} | |
16 | {% endif %} | |
17 | <link rel="self" type="application/atom+xml" href="{{ app.request.uri }}"/> | |
18 | {% if entries.hasPreviousPage %} | |
19 | <link rel="previous" href="{{ url }}/{{ entries.previousPage }}"/> | |
20 | {% endif -%} | |
21 | {% if entries.hasNextPage %} | |
22 | <link rel="next" href="{{ url }}/{{ entries.nextPage }}"/> | |
23 | {% endif -%} | |
24 | <link rel="last" href="{{ url }}/{{ entries.nbPages }}"/> | |
25 | <generator uri="https://wallabag.org" version="{{ version }}">wallabag</generator> | |
26 | <author> | |
27 | <name>{{ user }}</name> | |
28 | </author> | |
29 | <icon>{{ asset('favicon.ico') }}</icon> | |
30 | <logo>{{ asset('bundles/wallabagcore/themes/_global/img/logo-square.png') }}</logo> | |
31 | {% for entry in entries %} | |
32 | <entry> | |
33 | <title><![CDATA[{{ entry.title|e }}]]></title> | |
34 | <link rel="alternate" type="text/html" | |
35 | href="{{ url('view', {'id': entry.id}) }}"/> | |
36 | <link rel="via">{{ entry.url }}</link> | |
37 | <id>wallabag:{{ domainName | removeScheme | removeWww }}:{{ user }}:entry:{{ entry.id }}</id> | |
38 | <updated>{{ entry.updatedAt|date('c') }}</updated> | |
39 | <published>{{ entry.createdAt|date('c') }}</published> | |
40 | {% for tag in entry.tags %} | |
41 | <category term="{{ tag.slug }}" label="{{ tag.label }}" /> | |
42 | {% endfor %} | |
43 | {% for author in entry.publishedBy %} | |
44 | <author> | |
45 | <name>{{ author }}</name> | |
46 | </author> | |
47 | {% endfor %} | |
48 | <content type="html" {% if entry.language %}xml:lang="{{ entry.language[:2] }}"{% endif %}> | |
49 | <![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 -}}]]> | |
50 | </content> | |
51 | </entry> | |
52 | {% endfor %} | |
53 | </feed> |