mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
full content search
This commit is contained in:
parent
9f1e10719e
commit
abf886b104
@ -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/**',
|
||||||
|
@ -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 %}
|
||||||
]
|
]
|
Loading…
x
Reference in New Issue
Block a user