mirror of
https://github.com/CoderSherlock/CoderSherlock.github.io.git
synced 2026-06-13 08:08:10 -07:00
15 lines
490 B
JavaScript
15 lines
490 B
JavaScript
window.TEXT_SEARCH_DATA={
|
|
{%- for _collection in site.collections -%}
|
|
{%- unless forloop.first -%},{%- endunless -%}
|
|
'{{ _collection.label }}':[
|
|
{%- for _article in _collection.docs -%}
|
|
{%- unless forloop.first -%},{%- endunless -%}
|
|
{'title':{{ _article.title | jsonify }},
|
|
{%- include snippets/prepend-baseurl.html path=_article.url -%}
|
|
{%- assign _url = __return -%}
|
|
'url':{{ _url | jsonify }}}
|
|
{%- endfor -%}
|
|
]
|
|
{%- endfor -%}
|
|
};
|