ORIENT/plugins/rainlab/blog/components/rssfeed/yandex.htm

28 lines
1.3 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:yandex="http://news.yandex.ru"
xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>{{ this.page.meta_title ?: this.page.title }}{% if category %}:{{category.name}}{% endif %}</title>
<link>{{ link }}</link>
<description>{{ this.page.meta_description ?: this.page.description }}</description>
<atom:link href="{{ rssLink }}" rel="self" type="application/rss+xml" />
<language>{{language}}</language>
{% for post in posts %}
<item>
<title>{{ post.title }}</title>
<link>{{ post.url }}</link>
<pdalink>{{ post.url }}</pdalink>
<yandex:genre>article</yandex:genre>
<category>{{post.categories.first.name}}</category>
<guid isPermaLink='true' >{{ post.url }}</guid>
<pubDate>{{post.rss_date}}</pubDate>
<description><![CDATA[{{ post.summary|raw}} ]]></description>
<enclosure url="{{post.featured_image|media_cdn}}" type="image/jpeg"/>
<yandex:full-text><![CDATA[ {{post.full_text|raw}} ]]></yandex:full-text>
</item>
{% endfor %}
</channel>
</rss>