I needed a second RSS feed for my site that would only show featured articles. Following the instructions in the Ghost article on building a new RSS feed, I built a new .hbs file, edited my routes.yaml, and got it all to work. Yay!
BUT – it is not sending featured images … or at least, not sending them where my RSS reader expects them. (One source I consulted said there should be a “thumbnail” field.)
So, what do I need to add? Here’s the pertinent code:
{{#get "posts" limit="10" filter="featured:true" include="authors,tags"}}
{{#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.name}} ]]></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}}
Any help with this appreciated!
Now, for some wonkiness.
I thought that the main RSS feed for my site would be at <![CDATA[Forward Kentucky]]>. And in fact, that URL returns something that sorta looks like an RSS feed should look. BUT, it also wasn’t delivering featured images, or at least not consistently.
I then checked what I was using to follow my own site in my RSS reader, and it was <![CDATA[Forward Kentucky]]>. And THAT one worked as expected.
So, are there two RSS feeds in a typical Ghost install? And if so, why? And if not, what is that phantom thing at /RSS?