Replace "hidden" check in Liquid with where_exp
This commit is contained in:
@@ -5,7 +5,7 @@ permalink: "/docs/history/"
|
||||
excerpt: Change log of enhancements and bug fixes made to the theme.
|
||||
sidebar:
|
||||
nav: docs
|
||||
last_modified_at: '2024-05-05T02:36:12+08:00'
|
||||
last_modified_at: '2024-05-05T03:17:32+08:00'
|
||||
toc: false
|
||||
---
|
||||
|
||||
@@ -25,6 +25,7 @@ toc: false
|
||||
|
||||
- Add support for [Jekyll Paginate V2](https://github.com/sverrirs/jekyll-paginate-v2) 🎉 [#2636](https://github.com/mmistakes/minimal-mistakes/pull/2636)
|
||||
- Auto scroll sticky ToC with content. [#3115](https://github.com/mmistakes/minimal-mistakes/pull/3115)
|
||||
- Replace "hidden" check in Liquid templates with `where_exp: "item", "item.hidden != true"`.
|
||||
|
||||
### Documentation & Maintenance
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@ permalink: /page-archive/
|
||||
author_profile: false
|
||||
---
|
||||
|
||||
{% for post in site.pages %}
|
||||
{% unless post.hidden %}
|
||||
{% include archive-single.html %}
|
||||
{% endunless %}
|
||||
{% assign posts = site.pages | where_exp: "post", "post.hidden != true" %}
|
||||
{% for post in posts %}
|
||||
{% include archive-single.html %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user