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

only include blog partial if any articles exist #53

Conversation

hotzeplotz
Copy link
Contributor

This is a trivial patch which improves the index rendering when there are no blog posts at all (yet) in the site's content, by omitting altogether the blog.html partial.

This makes it possible to use the nice Osprey theme for simple landing pages with no blog posts.

@tomanistor
Copy link
Owner

Thanks @hotzeplotz! I'm going to do the same thing for the gallery section and make the gallery and blog links in the header conditional as well.

@tomanistor tomanistor mentioned this pull request Dec 7, 2018
@tomanistor tomanistor merged commit e9b1b06 into tomanistor:master Dec 7, 2018
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

2 participants