fix RSS
This commit is contained in:
parent
9fdcb510b3
commit
984ba3f1b2
@ -159,8 +159,8 @@ class MainHandler extends request_handler {
|
||||
|
||||
$body = $this->skin->render('rss.twig', [
|
||||
'title' => lang('site_title'),
|
||||
'link' => 'https =>//'.$config['domain'],
|
||||
'rss_link' => 'https =>//'.$config['domain'].'/feed.rss',
|
||||
'link' => 'https://'.$config['domain'],
|
||||
'rss_link' => 'https://'.$config['domain'].'/feed.rss',
|
||||
'items' => $items
|
||||
]);
|
||||
|
||||
|
@ -7,10 +7,10 @@
|
||||
<atom:link href="{{ rss_link }}" rel="self" type="application/rss+xml"/>
|
||||
{% for item in items %}
|
||||
<item>
|
||||
<title>{{ title }}</title>
|
||||
<link>{{ link }}</link>
|
||||
<pubDate>{{ pub_date }}</pubDate>
|
||||
<description>{{ description }}</description>
|
||||
<title>{{ item.title }}</title>
|
||||
<link>{{ item.link }}</link>
|
||||
<pubDate>{{ item.pub_date }}</pubDate>
|
||||
<description>{{ item.description }}</description>
|
||||
</item>
|
||||
{% endfor %}
|
||||
</channel>
|
||||
|
Loading…
x
Reference in New Issue
Block a user