summaryrefslogtreecommitdiff
path: root/search.json
diff options
context:
space:
mode:
authormayx <mayx@outlook.com>2022-01-04 13:42:55 +0100
committermayx <mayx@outlook.com>2022-01-04 13:42:55 +0100
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 %}
+]