Exclude main.scss from Lunr search index

This commit is contained in:
Michael Rose
2022-05-27 11:48:46 -04:00
parent bcb15f80e7
commit 55f6e8fae5
5 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,6 @@
---
# Only the main Sass file needs front matter (the dashes are enough)
search: false
---
@charset "utf-8";

View File

@ -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 -%}