yannstatic/_includes/search-providers/default/search-data.js

18 lines
590 B
JavaScript
Raw Permalink Normal View History

2024-10-31 20:18:37 +01:00
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 }},
'create':{{ _article.create | jsonify }},
'date':{{ _article.modif | jsonify }}
}
{%- endfor -%}
]
{%- endfor -%}
};