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

ArticlesGenerator: Set blog=True consistently. Fixes #1631. #1632

Merged
merged 1 commit into from Feb 27, 2015
Merged

ArticlesGenerator: Set blog=True consistently. Fixes #1631. #1632

merged 1 commit into from Feb 27, 2015

Conversation

foresto
Copy link
Contributor

@foresto foresto commented Feb 19, 2015

Some of the ArticlesGenerator methods set blog=True when rendering templates, which could be very helpful for theme developers wanting to selectively include/exclude certain elements in blog templates vs. page templates. Unfortunately, the variable is set inconsistently. For example, it is present in the list of articles for a time period and in the list of authors, but not the list of articles for any one author. As far as I can tell, this makes it rather useless. This patch corrects the inconsistency.

@foresto foresto changed the title ArticlesGenerator: set blog=True consistently. ArticlesGenerator: set blog=True consistently. Fixes #1631. Feb 19, 2015
@foresto foresto changed the title ArticlesGenerator: set blog=True consistently. Fixes #1631. ArticlesGenerator: Set blog=True consistently. Fixes #1631. Feb 19, 2015
@iKevinY
Copy link
Member

iKevinY commented Feb 27, 2015

Looks good to me. It's nice to have more information to work with when it comes to writing themes.

@justinmayer justinmayer added this to the 3.6 milestone Feb 27, 2015
@justinmayer
Copy link
Member

@iKevinY: Thanks for the review and input!

@foresto: Thank you for the enhancement. Much appreciated.

justinmayer added a commit that referenced this pull request Feb 27, 2015
ArticlesGenerator: Set blog=True consistently. Fixes #1631.
@justinmayer justinmayer merged commit 63602c4 into getpelican:master Feb 27, 2015
@foresto foresto deleted the consistent-blog-var branch March 25, 2015 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants