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

26 lines
1.2 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>
<guid isPermaLink='true' >{{ post.url }}</guid>
<pubDate>{{post.rss_date}}</pubDate>
<description><![CDATA[<img src="{{post.featured_image|media_cdn}}">{{ post.summary|raw}} ]]></description>
<enclosure
url="{{post.featured_image|media_cdn}}"
type="image/jpeg"/>
<yandex:full-text><![CDATA[ {{post.content_html|raw}} ]]></yandex:full-text>
</item>
{% endfor %}
</channel>
</rss>