1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Moved search cache.

This commit is contained in:
Cotes Chung
2020-01-01 23:20:55 +08:00
parent 323bf0ad5d
commit 5bb810875b
2 changed files with 1 additions and 1 deletions

16
assets/data/search.json Normal file
View File

@@ -0,0 +1,16 @@
---
layout: compress
---
[
{% for post in site.posts %}
{
"title": "{{ post.title | escape }}",
"url": "{{ site.baseurl }}{{ post.url }}",
"categories": "{{ post.categories | join: ', '}}",
"tags": "{{ post.tags | join: ', ' }}",
"date": "{{ post.date }}",
"snippet": "{{ post.content | strip_html | strip_newlines | remove_chars | escape | truncate: 300 }}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]