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', [
|
$body = $this->skin->render('rss.twig', [
|
||||||
'title' => lang('site_title'),
|
'title' => lang('site_title'),
|
||||||
'link' => 'https =>//'.$config['domain'],
|
'link' => 'https://'.$config['domain'],
|
||||||
'rss_link' => 'https =>//'.$config['domain'].'/feed.rss',
|
'rss_link' => 'https://'.$config['domain'].'/feed.rss',
|
||||||
'items' => $items
|
'items' => $items
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
<atom:link href="{{ rss_link }}" rel="self" type="application/rss+xml"/>
|
<atom:link href="{{ rss_link }}" rel="self" type="application/rss+xml"/>
|
||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
<item>
|
<item>
|
||||||
<title>{{ title }}</title>
|
<title>{{ item.title }}</title>
|
||||||
<link>{{ link }}</link>
|
<link>{{ item.link }}</link>
|
||||||
<pubDate>{{ pub_date }}</pubDate>
|
<pubDate>{{ item.pub_date }}</pubDate>
|
||||||
<description>{{ description }}</description>
|
<description>{{ item.description }}</description>
|
||||||
</item>
|
</item>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</channel>
|
</channel>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user