Created
August 13, 2018 08:38
-
-
Save leonp/cc546c1e83f977aca30767bc68131ded to your computer and use it in GitHub Desktop.
Exclude posts from a category in Jekyll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign posts = site.posts | where_exp: "post", | |
"post.category != 'web'" %} | |
{% for post in posts %} | |
// Some HTML using the post object | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if only it was that simple 😂