summaryrefslogtreecommitdiffstats
path: root/search.json
diff options
context:
space:
mode:
authorMichael W <baddaemon87@gmail.com>2017-12-26 13:26:08 +0100
committerMichael W <baddaemon87@gmail.com>2017-12-26 13:26:08 +0100
commit8ec15c0518b62c6fd11c732697ae7afb44364ad4 (patch)
tree8dded7affa4fb2993270458214e9d773c35f5424 /search.json
parent05e270f4402704e509fda90ad1197b80098911e1 (diff)
downloadlineage_wiki-8ec15c0518b62c6fd11c732697ae7afb44364ad4.tar.gz
lineage_wiki-8ec15c0518b62c6fd11c732697ae7afb44364ad4.tar.bz2
lineage_wiki-8ec15c0518b62c6fd11c732697ae7afb44364ad4.zip
wiki: Search: Exclude build and installation pages from search
* We have build_guides.html and install_guides.html as a common adress for these * Don't spam the search bar when searching for "info" or "build" * Fix a few page titles so the overview-pages are properly ordered Change-Id: I0acfbab2e8e9e1f69657374b37c4338c51e232dd
Diffstat (limited to 'search.json')
-rw-r--r--search.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/search.json b/search.json
index 8f8fb93b..0acd69af 100644
--- a/search.json
+++ b/search.json
@@ -8,7 +8,7 @@ search: exclude
{% for page in site.pages %}
{% unless page.search == "exclude" or page.url contains "_info.html" or page.url contains "_install.html" or page.url contains "_build.html" or page.url contains "devices.html" or page.url contains ".css" %}
-{% if forloop.index0 > 1 %}, {% endif %}
+{% unless page.url contains "/devices" and page.url contains "/build" or page.url contains "/devices" and page.url contains "/install" %}
{
"title": "{{ page.title | escape }}",
"tags": "{{ page.tags }}",
@@ -16,6 +16,8 @@ search: exclude
"url": "{{ page.url | relative_url }}",
"summary": "{{page.summary | strip }}"
}
+{% if forloop.last == false %}, {% endif %}
+{% endunless %}
{% endunless %}
{% endfor %}