first commit
This commit is contained in:
25
assets/js/data/search.json
Normal file
25
assets/js/data/search.json
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
layout: compress
|
||||
swcache: true
|
||||
---
|
||||
|
||||
[
|
||||
{% assign posts = site.posts | sort: 'last_modified_at' | reverse %}
|
||||
{% for post in posts %}
|
||||
{
|
||||
"title": {{ post.title | jsonify }},
|
||||
"url": {{ post.url | relative_url | jsonify }},
|
||||
"categories": {{ post.categories | join: ', ' | jsonify }},
|
||||
"tags": {{ post.tags | join: ', ' | jsonify }},
|
||||
"date": "{{ post.date | date: '%d/%m/%Y' }}",
|
||||
{% if post.last_modified_at %}
|
||||
"datemodif": "{{ post.last_modified_at | date: '%d/%m/%Y' }}",
|
||||
{% else %}
|
||||
"datemodif": "",
|
||||
{% endif %}
|
||||
{% include no-linenos.html content=post.content %}
|
||||
{% assign _content = content | strip_html | strip_newlines %}
|
||||
"snippet": {{ _content | truncate: 200 | jsonify }}
|
||||
}{% unless forloop.last %},{% endunless %}
|
||||
{% endfor %}
|
||||
]
|
||||
Reference in New Issue
Block a user