Fix where_exp for Jekyll < 4.0
'and' and 'or' are new in Jekyll 4.0. Ref: https://stackoverflow.com/posts/comments/111965719
This commit is contained in:
parent
7d61488f5e
commit
7ea8510d4f
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
- "You may also enjoy" no longer recommends hidden posts. [#4653](https://github.com/mmistakes/minimal-mistakes/issues/4653)
|
- "You may also enjoy" no longer recommends hidden posts. [#4653](https://github.com/mmistakes/minimal-mistakes/issues/4653)
|
||||||
- Replaced dead link to "Viewport and Media Queries" slides. [#4421](https://github.com/mmistakes/minimal-mistakes/discussions/4421)
|
- Replaced dead link to "Viewport and Media Queries" slides. [#4421](https://github.com/mmistakes/minimal-mistakes/discussions/4421)
|
||||||
|
- Fix broken `where_exp` in `lunr-store.js` for Jekyll < 4.0. [#4808](https://github.com/mmistakes/minimal-mistakes/issues/4808)
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
||||||
|
2
assets/js/lunr/lunr-store.js
vendored
2
assets/js/lunr/lunr-store.js
vendored
@ -47,7 +47,7 @@ var store = [
|
|||||||
}{%- unless forloop.last and l -%},{%- endunless -%}
|
}{%- unless forloop.last and l -%},{%- endunless -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- endfor -%}{%- if site.lunr.search_within_pages -%},
|
{%- endfor -%}{%- if site.lunr.search_within_pages -%},
|
||||||
{%- assign pages = site.pages | where_exp:'doc','doc.search != false and doc.title != null' -%}
|
{%- assign pages = site.pages | where_exp: 'doc', 'doc.search != false' | where_exp: 'doc', 'doc.title != null' -%}
|
||||||
{%- for doc in pages -%}
|
{%- for doc in pages -%}
|
||||||
{%- if forloop.last -%}
|
{%- if forloop.last -%}
|
||||||
{%- assign l = true -%}
|
{%- assign l = true -%}
|
||||||
|
@ -5,7 +5,7 @@ permalink: "/docs/history/"
|
|||||||
excerpt: Change log of enhancements and bug fixes made to the theme.
|
excerpt: Change log of enhancements and bug fixes made to the theme.
|
||||||
sidebar:
|
sidebar:
|
||||||
nav: docs
|
nav: docs
|
||||||
last_modified_at: '2024-04-28T00:38:38+08:00'
|
last_modified_at: '2024-04-28T00:56:01+08:00'
|
||||||
toc: false
|
toc: false
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -21,6 +21,7 @@ toc: false
|
|||||||
|
|
||||||
- "You may also enjoy" no longer recommends hidden posts. [#4653](https://github.com/mmistakes/minimal-mistakes/issues/4653)
|
- "You may also enjoy" no longer recommends hidden posts. [#4653](https://github.com/mmistakes/minimal-mistakes/issues/4653)
|
||||||
- Replaced dead link to "Viewport and Media Queries" slides. [#4421](https://github.com/mmistakes/minimal-mistakes/discussions/4421)
|
- Replaced dead link to "Viewport and Media Queries" slides. [#4421](https://github.com/mmistakes/minimal-mistakes/discussions/4421)
|
||||||
|
- Fix broken `where_exp` in `lunr-store.js` for Jekyll < 4.0. [#4808](https://github.com/mmistakes/minimal-mistakes/issues/4808)
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user