Exclude main.scss
from Lunr search index
This commit is contained in:
parent
bcb15f80e7
commit
55f6e8fae5
5 changed files with 7 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
|
||||
### Enhancements
|
||||
|
||||
- Exclude `main.scss` from Lunr search index.
|
||||
- Allow `site.pages` to be indexed and searched via Lunr. [#3352](https://github.com/mmistakes/minimal-mistakes/pull/3352)
|
||||
- Update jQuery to v3.6.0. [#3254](https://github.com/mmistakes/minimal-mistakes/pull/3254)
|
||||
- Use notice `<a>` colors for blockquotes that have `notice--` classes applied. [#3140](https://github.com/mmistakes/minimal-mistakes/pull/3140) [#3068](https://github.com/mmistakes/minimal-mistakes/issues/3068)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
# Only the main Sass file needs front matter (the dashes are enough)
|
||||
search: false
|
||||
---
|
||||
|
||||
@charset "utf-8";
|
||||
|
|
3
assets/js/lunr/lunr-store.js
vendored
3
assets/js/lunr/lunr-store.js
vendored
|
@ -47,7 +47,8 @@ var store = [
|
|||
}{%- unless forloop.last and l -%},{%- endunless -%}
|
||||
{%- endfor -%}
|
||||
{%- endfor -%}{%- if site.lunr.search_within_pages -%},
|
||||
{%- for doc in site.pages -%}
|
||||
{%- assign pages = site.pages | where_exp:'doc','doc.search != false' -%}
|
||||
{%- for doc in pages -%}
|
||||
{%- if forloop.last -%}
|
||||
{%- assign l = true -%}
|
||||
{%- endif -%}
|
||||
|
|
|
@ -27,6 +27,7 @@ toc: false
|
|||
|
||||
### Enhancements
|
||||
|
||||
- Exclude `main.scss` from Lunr search index.
|
||||
- Allow `site.pages` to be indexed and searched via Lunr. [#3352](https://github.com/mmistakes/minimal-mistakes/pull/3352)
|
||||
- Update jQuery to v3.6.0. [#3254](https://github.com/mmistakes/minimal-mistakes/pull/3254)
|
||||
- Use notice `<a>` colors for blockquotes that have `notice--` classes applied. [#3140](https://github.com/mmistakes/minimal-mistakes/pull/3140) [#3068](https://github.com/mmistakes/minimal-mistakes/issues/3068)
|
||||
|
|
|
@ -52,6 +52,8 @@ atom_feed:
|
|||
search : true # true, false (default)
|
||||
search_full_content : true # true, false (default)
|
||||
search_provider : "lunr"
|
||||
lunr:
|
||||
search_within_pages : true
|
||||
algolia:
|
||||
application_id : "QB6HVGBSBA"
|
||||
index_name : "dev_minimal-mistakes"
|
||||
|
|
Loading…
Reference in a new issue