aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2015-12-05 11:32:49 +0200
committerXhmikosR <[email protected]>2015-12-05 11:32:49 +0200
commite7a9a88c3c27a953d7071119bd145509b4281112 (patch)
treef1f5b8c6f65978caa1a5d1cb00581873b4f59c10 /docs
parentc7ea145df63f31c9f6a733f2b7524cc2656f4c17 (diff)
parent3afdbe426f7d195912777b8b55bec5db982f92e1 (diff)
downloadbootstrap-e7a9a88c3c27a953d7071119bd145509b4281112.tar.xz
bootstrap-e7a9a88c3c27a953d7071119bd145509b4281112.zip
Merge pull request #18432 from twbs/v4-dev-xmr-jekyll-search
Fix docs/search.json.
Diffstat (limited to 'docs')
-rw-r--r--docs/search.json12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/search.json b/docs/search.json
index a31fc7334..7cd8517bc 100644
--- a/docs/search.json
+++ b/docs/search.json
@@ -3,11 +3,13 @@
---
[
- {% for page in site.pages %}
+{% assign sorted_pages = site.html_pages | sort: 'title' %}
+{% for page in sorted_pages %}
+ {% if page.title %}
{
- "title" : "{{ page.title | escape }}",
- "url" : "{{ site.baseurl }}{{ page.url }}",
- "date" : "{{ page.date }}"
+ "title" : {{ page.title | jsonify }},
+ "url" : "{{ site.baseurl }}{{ page.url }}"
} {% unless forloop.last %},{% endunless %}
- {% endfor %}
+ {% endif %}
+{% endfor %}
]