modif search.json
This commit is contained in:
@@ -1,18 +1,14 @@
|
||||
---
|
||||
layout: compress
|
||||
swcache: true
|
||||
layout: none
|
||||
---
|
||||
|
||||
[
|
||||
{% for post in site.posts %}
|
||||
{
|
||||
"title": {{ post.title | jsonify }},
|
||||
"url": {{ post.url | relative_url | jsonify }},
|
||||
"categories": {{ post.categories | join: ', ' | jsonify }},
|
||||
"tags": {{ post.tags | join: ', ' | jsonify }},
|
||||
"date": {{ post.date | jsonify }},
|
||||
{% capture content -%}{% include post-summary.html full_text=true %}{%- endcapture -%}
|
||||
"content": {{ content | jsonify }}
|
||||
}{% unless forloop.last %},{% endunless %}
|
||||
"title" : "{{ post.title | escape }}",
|
||||
"categories" : "{{ post.categories }}",
|
||||
"tags" : "{{ post.tags | join: ', ' }}",
|
||||
"url" : "{{ site.baseurl }}{{ post.url }}",
|
||||
"date" : "{{ post.date }}"
|
||||
} {% unless forloop.last %},{% endunless %}
|
||||
{% endfor %}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user