RSS question, plus some RSS wonkiness

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?

I don’t think Ghost has any default behavior at /feed. What’s your routes.yaml look like?

Here you go:

routes:
  /:
    controller: channel
    template: home

  /featured-rss/:
    template: featured-rss
    content_type: text/xml

collections:
  /latest/:
    template: index
    permalink: /{slug}/

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

your /feed redirects to /latest/rss. So does your /rss. And then at /featured-rss, you have a hand-built feed, controlled by the featured-rss.hbs template in the theme.

Not sure why /feed redirects to there, since I don’t see anything in Routes that causes that. As they say in Airplane, though – “But that’s not important now.”

Do I need to add as a field in the RSS.hbs I built?