Merge branch 'master' of https://github.com/mmistakes/minimal-mistakes
This commit is contained in:
commit
1fcda6f988
1 changed files with 28 additions and 24 deletions
|
@ -14,6 +14,7 @@ var idx = lunr(function () {
|
|||
{% for c in site.collections %}
|
||||
{% assign docs = c.docs %}
|
||||
{% for doc in docs %}
|
||||
{% unless doc.search == false %}
|
||||
idx.add({
|
||||
title: {{ doc.title | jsonify }},
|
||||
excerpt: {{ doc.content | strip_html | truncatewords: 20 | jsonify }},
|
||||
|
@ -22,6 +23,7 @@ var idx = lunr(function () {
|
|||
id: {{ count }}
|
||||
});
|
||||
{% assign count = count | plus: 1 %}
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
|
@ -34,6 +36,7 @@ var store = [
|
|||
{% endif %}
|
||||
{% assign docs = c.docs %}
|
||||
{% for doc in docs %}
|
||||
{% unless doc.search == false %}
|
||||
{% if doc.header.teaser %}
|
||||
{% capture teaser %}{{ doc.header.teaser }}{% endcapture %}
|
||||
{% else %}
|
||||
|
@ -50,6 +53,7 @@ var store = [
|
|||
{{ teaser | absolute_url | jsonify }}
|
||||
{% endif %}
|
||||
}{% unless forloop.last and l %},{% endunless %}
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
{% endfor %}]
|
||||
|
||||
|
|
Loading…
Reference in a new issue