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

Category feed v2 #544

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Conversation

palmitoto
Copy link

Hello,
this is a merge request to add a rss category feed.
In addition to the default settings, the number of items to display can be passed by parameters.

corentinbettiol and others added 4 commits December 17, 2019 10:27
added X last blog posts in context, so that templates can display posts instead of only the total number of blog posts written by the selected authors
@palmitoto palmitoto mentioned this pull request Apr 6, 2020
@coveralls
Copy link

coveralls commented Apr 6, 2020

Coverage Status

Coverage remained the same at ?% when pulling c99c4a9 on palmitoto:category_feed_v2 into 39d416b on nephila:develop.

Copy link
Member

@yakky yakky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@palmitoto thanks for the cleaned up version, apart from the two minor comments, could you haev a look at the tests failures and could you add a test for the category feed along the lines of the per-tag feed?

author.count = count
# "the number of author articles to be displayed"
author.posts = qs[:self.latest_posts]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this does not belong here

@@ -80,11 +80,29 @@ def item_author_url(self, item):
class TagFeed(LatestEntriesFeed):
feed_items_number = get_setting('FEED_TAGS_ITEMS')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as you are using directly the setting, you can also remove this attribute

@yakky yakky added this to the 1.1 milestone Apr 7, 2020
@yakky yakky removed this from the 1.1 milestone Jun 25, 2020
@yakky yakky force-pushed the develop branch 2 times, most recently from 36e5e25 to 5220d47 Compare May 8, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants