-
Notifications
You must be signed in to change notification settings - Fork 207
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
Allow categories: true
to make feeds for all categories
#379
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,6 +153,13 @@ feed: | |
- updates | ||
``` | ||
|
||
Or, to generate a feed for all categories: | ||
|
||
```yml | ||
feed: | ||
categories: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On line 24 of generator.rb, we have special handling for |
||
``` | ||
|
||
## Posts limit | ||
|
||
By default the plugin limits the number of posts in the feed to 10. Simply define a new limit in your config: | ||
|
@@ -193,6 +200,16 @@ feed: | |
- updates | ||
``` | ||
|
||
Or pass `categories: true` to generate a feed for all categories: | ||
|
||
```yml | ||
feed: | ||
collections: | ||
changes: | ||
path: "/changes.atom" | ||
categories: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we have a test for this? It seems like we could over-generate. That is we could generate a category feed which has zero entries since a collection doesn't have any documents with a category that is only present in another collection.
|
||
``` | ||
|
||
## Excerpt Only flag | ||
|
||
Optional flag `excerpt_only` allows you to exclude post content from the Atom feed. Default value is `false` for backward compatibility. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to explain that in the current implementation, this means that each collection will get its own category feed. This operates differently than tag-based feeds where they unify all documents from any collection into a single feed.