forked from newscoop/theme-JournalB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rss.tpl
37 lines (37 loc) · 1.73 KB
/
rss.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>{{$gimme->publication->name}}</title>
<link>{{ url options="root_level" }}</link>
<description>{{$siteinfo.description}}</description>
<language>{{ $gimme->language->code }}</language>
<copyright>Copyright {{$smarty.now|date_format:"%Y"}}, {{$gimme->publication->name}}</copyright>
<lastBuildDate>{{$smarty.now|date_format:"%a, %d %b %Y %H:%M:%S"}} +0100</lastBuildDate>
<ttl>60</ttl>
<generator>Newscoop</generator>
<image>
<url>{{ url static_file="_img/logo.png" }}</url>
<title>{{$gimme->publication->name}}</title>
<link>{{ url options="root_level" }}</link>
</image>
<atom:link href="{{ url options="root_level" }}/de/static/rss" rel="self" type="application/rss+xml" />
{{list_articles length="20" ignore_issue="true" ignore_section="true" constraints="type is news type is blog type is kolumne type is kommentar" order="bypublishdate desc"}}
<item>
<title>{{$gimme->article->name|escape }}</title>
<link>{{ url options="article" }}</link>
<description>
{{ list_article_images length="1" }}
<img src="{{$gimme->article->image->thumbnailurl}}" border="0" align="left" hspace="5" />
{{ /list_article_images }}
{{$gimme->article->deck|strip_tags:false|strip|escape:'html':'utf-8'}}
<br clear="all">
</description>
<category domain="{{ url options="section" }}">{{$gimme->section->name}}</category>
{{if $gimme->article->author->name}}
<atom:author><atom:name>{{ $gimme->article->author->name }}</atom:name></atom:author>
{{/if}}
<pubDate>{{$gimme->article->publish_date|date_format:"%a, %d %b %Y %H:%M:%S"}} +0100</pubDate>
<guid isPermaLink="true">{{ url options="article" }}</guid>
</item>
{{/list_articles}}
</channel>
</rss>