summary refs log tree commit diff
path: root/search.json
diff options
context:
space:
mode:
authormayx2024-09-30 13:51:26 +0000
committermayx2024-09-30 13:51:26 +0000
commit07a3d1835078730be5c6223a555c7c83c9306958 (patch)
tree3d3d30c0fabcaec4fb4123bf4b81fd98b2e7007b /search.json
parent550321e80acceb1d4b0bc442964014f80e1d88d3 (diff)
Update 3 files
- /js/main.js
- /_layouts/post.html
- /search.json
Diffstat (limited to 'search.json')
-rw-r--r--search.json13
1 files changed, 1 insertions, 12 deletions
diff --git a/search.json b/search.json
index 73c32f4..8ad4e54 100644
--- a/search.json
+++ b/search.json
@@ -1,14 +1,3 @@
 ---
 ---
-[
-  {% 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 %}
-]
+[{% 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 %}]