Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds multiple feed template support #227

Closed

Conversation

dreamalligator
Copy link
Contributor

@dreamalligator dreamalligator commented May 7, 2018

this PR adds support for multiple feed templates. it is kindof like #176, but this allows any number of custom templates, not just category support.

it preserves the previous feed-path config options as well as a new format

feed:
  paths:
    - feed_source_path: feed.xml # default feed template
      feed_output_path: feed.xml
    - feed_source_path: _layouts/special-category-feed.xml # example
      feed_output_path: very-special-feed.xml

closes #225.

@benbalter
Copy link
Contributor

@nebulousdog Can you share a bit more about what problem you're trying to solve here? What's the advantage of this approach versus just putting additional templates in the site source and having Jekyll build them normally?

@dreamalligator
Copy link
Contributor Author

sure! I just saw your PR and that's a great feature (#228).

I have two use-cases that are slightly different, because they aren't collection/category based.

In the first use-case; I'm using a second "mini" feed that is a stripped down version of the default feed.xml. Each generation creates the default feed for users to subscribe to. The "mini" feed is used on the parent site to show links to the blog. This is slimmed down so that the ajax response is as small as possible, and isn't intended to be subscribed to.

The second use-case is for archiving by language; I have some archives based on locale/language (the lang frontmatter attribute jekyll-feed). Since these aren't based on categories/tags, they have a similar custom template requirement.

Thanks!

@jekyll jekyll locked and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

multiple feed templates
3 participants