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

22 lines
1.0 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/">
<channel>
<title>{{ this.page.meta_title ?: this.page.title }}</title>
<link>{{ link }}</link>
<description>{{ this.page.meta_description ?: this.page.description }}</description>
<atom:link href="{{ rssLink }}" rel="self" type="application/rss+xml" />
{% for post in posts %}
<item>
<title>{{ post.title }}</title>
<link>{{ post.url }}</link>
<guid isPermaLink='true' >{{ post.url }}</guid>
<pubDate>{{ post.published_at.toRfc2822String }}</pubDate>
<description><img src="{{post.featured_image|media_cdn}}">{{ post.summary }}</description>
<content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/">
{{post.content_html}}
</content:encoded>
</item>
{% endfor %}
</channel>
</rss>