-
Notifications
You must be signed in to change notification settings - Fork 38
/
index.json
22 lines (22 loc) · 1.07 KB
/
index.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
---
{% assign folder1 = site.pages | where_exp: "item" , "item.path contains 'wiki'" | sort:"path" %}
{% assign blogchains = site.pages | where_exp: "item" , "item.path contains 'blogchains'" | where_exp: "item" , "item.path contains '.md'" %}
[{% for post in site.posts %}{
"title": {{post.title | jsonify}},
"url": {{ post.url | prepend: site.baseurl | prepend: site.url | jsonify }},
"date": {{ post.date | date: '%B %-d, %Y' | jsonify }},
"content": {{ post.content | strip_html | strip_newlines | jsonify }}
},{% endfor %}
{% for page in blogchains %}{
"title": "{{page.title}} Blogchain",
"url": {{ page.url | prepend: site.baseurl | prepend: site.url | jsonify }},
"date": {{ post.date | date: '%B %-d, %Y' | jsonify }},
"content": "A blogchain on {{page.title}}"
},{% endfor %}
{% for item in folder1 %}{
"title": "{{item.url}}",
"url": {{ item.url | prepend: site.baseurl | prepend: site.url | jsonify }},
"category": "wiki",
"content": {{ item.content | strip_html | strip_newlines | jsonify }}
}{% unless forloop.last %},{% endunless %}{% endfor %}]