1
0
Fork 0

full content search

This commit is contained in:
Matthias Kretschmann 2013-11-30 18:02:27 +01:00
parent 9f1e10719e
commit abf886b104
2 changed files with 6 additions and 4 deletions

View File

@ -166,6 +166,7 @@ module.exports = function(grunt){
files: [
'<%= config.src %>/*.html',
'<%= config.src %>/*.xml',
'<%= config.src %>/*.json',
'<%= config.src %>/_includes/**',
'<%= config.src %>/_layouts/**',
'<%= config.src %>/_posts/**',

View File

@ -3,10 +3,11 @@
[
{% for post in site.posts %}
{
"title" : "{{ post.title | escape }}",
"category" : "{{ post.category }}",
"url" : "{{ post.url }}",
"date" : "{{ post.date }}"
"title" : "{{ post.title | escape }}",
"category" : "{{ post.categories }}",
"url" : "{{ post.url }}",
"date" : "{{ post.date }}",
"content" : "{{ post.content | strip_html | strip_newlines | escape }}"
} {% if forloop.last %}{% else %},{% endif %}
{% endfor %}
]