parent
86d64f412c
commit
05d296c247
1 changed files with 4 additions and 2 deletions
6
assets/js/lunr/lunr-store.js
vendored
6
assets/js/lunr/lunr-store.js
vendored
|
@ -18,7 +18,8 @@ var store = [
|
||||||
"title": {{ doc.title | jsonify }},
|
"title": {{ doc.title | jsonify }},
|
||||||
"excerpt":
|
"excerpt":
|
||||||
{%- if site.search_full_content == true -%}
|
{%- if site.search_full_content == true -%}
|
||||||
{{ doc.content |
|
{{ doc.content | newline_to_br |
|
||||||
|
replace:"<br />", " " |
|
||||||
replace:"</p>", " " |
|
replace:"</p>", " " |
|
||||||
replace:"</h1>", " " |
|
replace:"</h1>", " " |
|
||||||
replace:"</h2>", " " |
|
replace:"</h2>", " " |
|
||||||
|
@ -28,7 +29,8 @@ var store = [
|
||||||
replace:"</h6>", " "|
|
replace:"</h6>", " "|
|
||||||
strip_html | strip_newlines | jsonify }},
|
strip_html | strip_newlines | jsonify }},
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ doc.content |
|
{{ doc.content | newline_to_br |
|
||||||
|
replace:"<br />", " " |
|
||||||
replace:"</p>", " " |
|
replace:"</p>", " " |
|
||||||
replace:"</h1>", " " |
|
replace:"</h1>", " " |
|
||||||
replace:"</h2>", " " |
|
replace:"</h2>", " " |
|
||||||
|
|
Loading…
Reference in a new issue