summaryrefslogtreecommitdiff
path: root/_includes/search-providers/default/search-data.js
blob: f20e0c55cd6440b98df9dc2bfbc6e410c9030620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 -%}
};