Skip to content

Instantly share code, notes, and snippets.

@leonp
Created August 13, 2018 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonp/cc546c1e83f977aca30767bc68131ded to your computer and use it in GitHub Desktop.
Save leonp/cc546c1e83f977aca30767bc68131ded to your computer and use it in GitHub Desktop.
Exclude posts from a category in Jekyll
{% assign posts = site.posts | where_exp: "post",
"post.category != 'web'" %}
{% for post in posts %}
// Some HTML using the post object
{% endfor %}
@clawfire
Copy link

if only it was that simple 😂

@kamauwanjoroge
Copy link

It doesn't work with LSI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment