1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-16 09:33:13 +02:00

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: [ files: [
'<%= config.src %>/*.html', '<%= config.src %>/*.html',
'<%= config.src %>/*.xml', '<%= config.src %>/*.xml',
'<%= config.src %>/*.json',
'<%= config.src %>/_includes/**', '<%= config.src %>/_includes/**',
'<%= config.src %>/_layouts/**', '<%= config.src %>/_layouts/**',
'<%= config.src %>/_posts/**', '<%= config.src %>/_posts/**',

View File

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