We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How can I tell the homepage to show only posts from /design/ and /download/ but NOT posts from /science/ ?
The text was updated successfully, but these errors were encountered:
This is code responsible for generating list of pages on homepage https://github.com/hemangsk/Gravity/blob/master/index.html#L8-L22
On line 8
{% for post in paginator.posts%}
After this you can do
{% if post.categories contains "Design" and post.categories contains "Download" %}
and wrap the lines 9 to 22 inside this if statement with
{% endif %}
Sorry, something went wrong.
Wow, super fast response. Thanks so much. This worked:
{% if post.categories contains "Design" or post.categories contains "Download" %}
great!
No branches or pull requests
How can I tell the homepage to show only posts from /design/ and /download/ but NOT posts from /science/ ?
The text was updated successfully, but these errors were encountered: