1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-29 16:19:53 +02:00

Merge pull request #18432 from twbs/v4-dev-xmr-jekyll-search

Fix docs/search.json.
This commit is contained in:
XhmikosR
2015-12-05 11:32:49 +02:00

View File

@@ -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 }}", "title" : {{ page.title | jsonify }},
"url" : "{{ site.baseurl }}{{ page.url }}", "url" : "{{ site.baseurl }}{{ page.url }}"
"date" : "{{ page.date }}"
} {% unless forloop.last %},{% endunless %} } {% unless forloop.last %},{% endunless %}
{% endfor %} {% endif %}
{% endfor %}
] ]