mirror of
https://github.com/Decentralized-ID/decentralized-id.github.io.git
synced 2025-08-21 04:18:24 -04:00
introducing: minimal mistakes
This commit is contained in:
parent
0c0e191d72
commit
3db2701e10
766 changed files with 41906 additions and 1080 deletions
54
assets/js/lunr/lunr-store.js
Normal file
54
assets/js/lunr/lunr-store.js
Normal file
|
@ -0,0 +1,54 @@
|
|||
---
|
||||
layout: null
|
||||
---
|
||||
|
||||
var store = [
|
||||
{%- for c in site.collections -%}
|
||||
{%- if forloop.last -%}
|
||||
{%- assign l = true -%}
|
||||
{%- endif -%}
|
||||
{%- assign docs = c.docs | where_exp:'doc','doc.search != false' -%}
|
||||
{%- for doc in docs -%}
|
||||
{%- if doc.header.teaser -%}
|
||||
{%- capture teaser -%}{{ doc.header.teaser }}{%- endcapture -%}
|
||||
{%- else -%}
|
||||
{%- assign teaser = site.teaser -%}
|
||||
{%- endif -%}
|
||||
{
|
||||
"title": {{ doc.title | jsonify }},
|
||||
"excerpt":
|
||||
{%- if site.search_full_content == true -%}
|
||||
{{ doc.content | newline_to_br |
|
||||
replace:"<br />", " " |
|
||||
replace:"</p>", " " |
|
||||
replace:"</h1>", " " |
|
||||
replace:"</h2>", " " |
|
||||
replace:"</h3>", " " |
|
||||
replace:"</h4>", " " |
|
||||
replace:"</h5>", " " |
|
||||
replace:"</h6>", " "|
|
||||
strip_html | strip_newlines | jsonify }},
|
||||
{%- else -%}
|
||||
{{ doc.content | newline_to_br |
|
||||
replace:"<br />", " " |
|
||||
replace:"</p>", " " |
|
||||
replace:"</h1>", " " |
|
||||
replace:"</h2>", " " |
|
||||
replace:"</h3>", " " |
|
||||
replace:"</h4>", " " |
|
||||
replace:"</h5>", " " |
|
||||
replace:"</h6>", " "|
|
||||
strip_html | strip_newlines | truncatewords: 50 | jsonify }},
|
||||
{%- endif -%}
|
||||
"categories": {{ doc.categories | jsonify }},
|
||||
"tags": {{ doc.tags | jsonify }},
|
||||
"url": {{ doc.url | absolute_url | jsonify }},
|
||||
"teaser":
|
||||
{%- if teaser contains "://" -%}
|
||||
{{ teaser | jsonify }}
|
||||
{%- else -%}
|
||||
{{ teaser | absolute_url | jsonify }}
|
||||
{%- endif -%}
|
||||
}{%- unless forloop.last and l -%},{%- endunless -%}
|
||||
{%- endfor -%}
|
||||
{%- endfor -%}]
|
Loading…
Add table
Add a link
Reference in a new issue