diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2022-10-14 01:23:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-14 01:23:55 +0200 |
| commit | 54807999b337440e03a6f97700dbdf20aecba8da (patch) | |
| tree | e6019495360864e39bd49a2b88c181d8a06df8d8 | |
| parent | 2da94573d80e0aaa7f436635f399643d03cf1980 (diff) | |
| download | wiki-54807999b337440e03a6f97700dbdf20aecba8da.tar.gz wiki-54807999b337440e03a6f97700dbdf20aecba8da.tar.bz2 wiki-54807999b337440e03a6f97700dbdf20aecba8da.zip | |
Delete searchdata.js
should be loaded by the remote theme
| -rw-r--r-- | assets/js/searchdata.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/assets/js/searchdata.js b/assets/js/searchdata.js deleted file mode 100644 index 7c46fed..0000000 --- a/assets/js/searchdata.js +++ /dev/null @@ -1,44 +0,0 @@ ---- -layout: null -is_wiki_page: false ---- -{% if site.search_engine == "js" %} -var jsondata=[ - {% for post in site.posts %} - { - "title" : "{{ post.title | escape }}", - "category" : "{{ post.category }}", - "tags" : "{{ post.tags | join: ', ' }}", - "url" : "{{ site.baseurl }}{{ post.url }}", - "date" : "{{ post.date }}", - "content" : "{{ post.content | strip_html | strip_newlines | remove: '"' }}" - } {% unless forloop.last %},{% endunless %} - {% endfor %} - , - {% for page in site.html_pages %} - { - {% assign title = page.title | default: page.name %} - {% if title != nil %} - "title" : "{{ title | escape }}", - "category" : "{{ page.category }}", - "tags" : "{{ page.tags | join: ', ' }}", - "url" : "{{ site.baseurl }}{{ page.url }}", - "date" : "{{ page.date }}", - "content" : "{{ page.content | strip_html | strip_newlines | remove: '"' }}" - {% endif %} - } {% unless forloop.last %},{% endunless %} - {% endfor %} -]; - -var sjs = SimpleJekyllSearch({ - searchInput: document.getElementById('search-input'), - resultsContainer: document.getElementById('results-container'), - json: jsondata, - searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}</a></li>', - noResultsText: 'No results found', - limit: 10, - fuzzy: false, - exclude: [] - }) -{% endif %} - |
