mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 09:56:51 +01:00
full content search
This commit is contained in:
parent
9f1e10719e
commit
abf886b104
@ -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/**',
|
||||
|
@ -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 %}
|
||||
]
|
Loading…
Reference in New Issue
Block a user