summary refs log tree commit diff
path: root/search.json
diff options
context:
space:
mode:
authormayx2022-01-04 20:42:55 +0800
committermayx2022-01-04 20:42:55 +0800
commitf4aa957c53cda659d026ffd23856f65a72fee739 (patch)
treeafc51b78e1ff241c955ca30910e895e02e0a1d22 /search.json
Restore deleted repositories
Diffstat (limited to 'search.json')
-rw-r--r--search.json14
1 files changed, 14 insertions, 0 deletions
diff --git a/search.json b/search.json
new file mode 100644
index 0000000..73c32f4
--- /dev/null
+++ b/search.json
@@ -0,0 +1,14 @@
+---
+---
+[
+  {% for post in site.posts %}{% unless post.layout == "encrypt" %}
+    {
+      "title"    : "{{ post.title | escape }}",
+      "category" : "{{ post.category }}",
+      "tags"     : "{{ post.tags | join: ', ' }}",
+      "url"      : "{{ site.baseurl }}{{ post.url }}",
+      "date"     : "{{ post.date | date: "%Y/%m/%d" }}",
+      "content": {{ post.content | strip_html | strip_newlines | jsonify }}
+    }{% unless forloop.last %},{% endunless %}{% endunless %}
+  {% endfor %}
+]