Replace "hidden" check in Liquid with where_exp
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
{%- for post in site.categories[include.taxonomy] -%}
|
||||
{%- unless post.hidden -%}
|
||||
{% include archive-single.html %}
|
||||
{%- endunless -%}
|
||||
{% assign posts = site.categories[include.taxonomy] | where_exp: "post", "post.hidden != true" %}
|
||||
{%- for post in posts -%}
|
||||
{% include archive-single.html %}
|
||||
{%- endfor -%}
|
||||
|
Reference in New Issue
Block a user