Support for user-configurable feed templates. #294
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit adds a new configuration setting that allows the user to
specify their own feed template, either for all feeds, or for categories
or collections, as follows:
For a given feed, the first matching template is the one that's used.
My use case for this one is integration with micro.blog while wanting to continue to support my regular RSS feed for normal subscribers. I've created a separate RSS feed containing only my notes (putting them all in the same category), and I want to exclude the entry title from each element in the feed so micro.blog treats them as notes instead of articles.
However, I still want a normal full feed with everything else in it.
This change allows me to alter the feed structure for the notes only.
I noticed there's a number of other requests to be able to specify alternative titles by category and so forth, and those requests could all be covered by this same change.
In addition, I noticed another PR that requested being able to generate multiple of the same feed with different layouts. I could see altering this changeset to enable that kind of use case through some alterations to the config structure if that's useful.