1window.TEXT_SEARCH_DATA={ 2 {%- for _collection in site.collections -%} 3 {%- unless forloop.first -%},{%- endunless -%} 4 '{{ _collection.label }}':[ 5 {%- for _article in _collection.docs -%} 6 {%- unless forloop.first -%},{%- endunless -%} 7 {'title':'{{ _article.title | url_encode }}', 8 {%- include snippets/prepend-baseurl.html path=_article.url -%} 9 {%- assign _url = __return -%} 10 'url':'{{ _url | url_encode }}'} 11 {%- endfor -%} 12 ] 13 {%- endfor -%} 14};