Exclude main.scss
from Lunr search index
This commit is contained in:
@ -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 -%}
|
||||
|
Reference in New Issue
Block a user