Skip to content

Commit 7ea8510

Browse files
committed
Fix where_exp for Jekyll < 4.0
'and' and 'or' are new in Jekyll 4.0. Ref: https://stackoverflow.com/posts/comments/111965719
1 parent 7d61488 commit 7ea8510

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- "You may also enjoy" no longer recommends hidden posts. [#4653](https://github.com/mmistakes/minimal-mistakes/issues/4653)
88
- Replaced dead link to "Viewport and Media Queries" slides. [#4421](https://github.com/mmistakes/minimal-mistakes/discussions/4421)
9+
- Fix broken `where_exp` in `lunr-store.js` for Jekyll &lt; 4.0. [#4808](https://github.com/mmistakes/minimal-mistakes/issues/4808)
910

1011
### Enhancements
1112

assets/js/lunr/lunr-store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var store = [
4747
}{%- unless forloop.last and l -%},{%- endunless -%}
4848
{%- endfor -%}
4949
{%- endfor -%}{%- if site.lunr.search_within_pages -%},
50-
{%- assign pages = site.pages | where_exp:'doc','doc.search != false and doc.title != null' -%}
50+
{%- assign pages = site.pages | where_exp: 'doc', 'doc.search != false' | where_exp: 'doc', 'doc.title != null' -%}
5151
{%- for doc in pages -%}
5252
{%- if forloop.last -%}
5353
{%- assign l = true -%}

docs/_docs/18-history.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ permalink: "/docs/history/"
55
excerpt: Change log of enhancements and bug fixes made to the theme.
66
sidebar:
77
nav: docs
8-
last_modified_at: '2024-04-28T00:38:38+08:00'
8+
last_modified_at: '2024-04-28T00:56:01+08:00'
99
toc: false
1010
---
1111

@@ -21,6 +21,7 @@ toc: false
2121

2222
- "You may also enjoy" no longer recommends hidden posts. [#4653](https://github.com/mmistakes/minimal-mistakes/issues/4653)
2323
- Replaced dead link to "Viewport and Media Queries" slides. [#4421](https://github.com/mmistakes/minimal-mistakes/discussions/4421)
24+
- Fix broken `where_exp` in `lunr-store.js` for Jekyll &lt; 4.0. [#4808](https://github.com/mmistakes/minimal-mistakes/issues/4808)
2425

2526
### Enhancements
2627

0 commit comments

Comments
 (0)