0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01: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
commit e7a9a88c3c

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