diff --git a/docs/search.html b/docs/search.html new file mode 100755 index 0000000..b06e38e --- /dev/null +++ b/docs/search.html @@ -0,0 +1,89 @@ +--- +layout: base +title: Search +nav_exclude: true +search_exclude: true +--- + +

Search Results

+ +
+ Enter a search query in the search box on the left. +
+ + + + diff --git a/docs/search_data.json b/docs/search_data.json new file mode 100644 index 0000000..639c8a4 --- /dev/null +++ b/docs/search_data.json @@ -0,0 +1,32 @@ +--- +layout: null +nav_exclude: true +search_exclude: true +--- +{ +{%- for site_page in site.pages %} +{%- unless site_page.search_exclude == true %} + "{{ site_page.url | slugify }}": { + "title": "{{ site_page.title | xml_escape }}", + "content": {{site_page.content | markdownify | newline_to_br | replace: '
', ' ' | strip_html | normalize_whitespace | jsonify }}, + "url": " {{ site_page.url | xml_escape }}", + "author": "{{ site_page.author | xml_escape }}" + }, +{%- endunless %} +{%- endfor %} +{%- for site_post in site.posts %} +{%- unless site_page.search_exclude == true %} + "{{ site_post.url | slugify }}": { + "title": "{{ site_post.title | xml_escape }}", + "content": {{site_post.content | markdownify | newline_to_br | replace: '
', ' ' | strip_html | normalize_whitespace | jsonify }}, + "url": " {{ site_post.url | xml_escape }}", + "author": "{{ site_post.author | xml_escape }}" + }{%- unless forloop.last %},{%- endunless %} +{%- endunless %} +{%- else %} + {%- comment %} Dirty trick: There is a comma at the end of the sites loop, so we need at least one entry after {% endcomment %} + ".": { + ".": "." + } +{%- endfor %} +}