casper-with-landing-page/feed/rss.hbs

47 lines
1.4 KiB
Handlebars
Raw Normal View History

2020-03-05 14:29:11 +00:00
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
<channel>
<title>
<![CDATA[ {{@blog.title}} ]]>
</title>
<description>
<![CDATA[ {{@blog.description}} ]]>
</description>
<link>{{@blog.url}}</link>
<image>
<url>{{@blog.url}}/favicon.png</url>
<title>{{@blog.title}}</title>
<link>{{@blog.url}}</link>
</image>
<lastBuildDate>{{date format="ddd, DD MMM YYYY HH:mm:ss ZZ"}}</lastBuildDate>
<atom:link href="{{@blog.url}}" rel="self" type="application/rss+xml" />
<ttl>60</ttl>
{{#get "posts" limit="all" include="authors"}}
{{#foreach posts}}
<item>
<title>
<![CDATA[ {{title}} ]]>
</title>
<description>
<![CDATA[ {{excerpt}} ]]>
</description>
<link>{{url absolute="true"}}</link>
<guid isPermaLink="false">{{id}}</guid>
<category>
<![CDATA[ {{primary_tag}} ]]>
</category>
<dc:creator>
<![CDATA[ {{primary_author.name}} ]]>
</dc:creator>
<pubDate>{{date format="ddd, DD MMM YYYY HH:mm:ss ZZ"}}</pubDate>
<media:content url="{{feature_image}}" medium="image" />
<content:encoded>
<![CDATA[ {{content}} ]]>
</content:encoded>
</item>
{{/foreach}}
{{/get}}
</channel>
</rss>