Quantcast
Channel: Creating a single-purpose RSS feed
Viewing all articles
Browse latest Browse all 8

Creating a single-purpose RSS feed

$
0
0

I have an existing site with an RSS feed at /index.xml for blog posts, which I don’t want to change. I want to create a couple of new RSS feeds for specific purposes:

The first is the same posts as the standard RSS feed, but instead of using .Content it will use .Summary. I want this to be located at /summary.xml

The second will have only specific pages on a topic (say, penguins) and will be located at, say, /penguins.xml. I’m planning to create a “menu” and in each page’s front matter that I want in this feed, I’ll just say “menu: penguins” and then reference that menu in the RSS template.

My question is not how to write the templates - that seems easy and I’m having no trouble copying and modifying the standard RSS template - my question is how to get the rendered site to have these specific paths and content. I’m having no luck searching; perhaps I haven’t thought of the right search terms. I’ve tried a few options, without success:

  1. Put a file into /content/summary.xml, for example, and put template code in it. Doesn’t work, it just gets copied as a static file to the output.
  2. Put a file into /static/summary.xml, but the same problem happens.
  3. Put a markdown file into /content, mostly empty and perhaps just with front matter; and let it be rendered with a template where the logic will live; but it’s not a page or blog; what content type would I specify for it? Not sure where to start with this idea.

Read full topic


Viewing all articles
Browse latest Browse all 8

Trending Articles