Update 3 files

- /js/main.js
- /_layouts/post.html
- /search.json
This commit is contained in:
mayx
2024-09-30 13:51:26 +00:00
parent 550321e80a
commit 07a3d18350
3 changed files with 56 additions and 48 deletions

View File

@@ -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 %}]