yannstatic/_includes/search-providers/default/search-data.js
2024-10-31 20:18:37 +01:00

18 lines
590 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 }},
'create':{{ _article.create | jsonify }},
'date':{{ _article.modif | jsonify }}
}
{%- endfor -%}
]
{%- endfor -%}
};