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

27 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: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"/>
<content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/">
<![CDATA[ {{post.content_html|raw}} ]]>
</content:encoded>
</item>
{% endfor %}
</channel>
</rss>