-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.json
51 lines (51 loc) · 1.63 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
---
{
"categories":[{% for category in site.categories %}
{
"name": "{{ category[0] }}",
"posts": [
{% for post in category[1] %}
{
"id": "{{ post.id }}",
"title": "{{ post.title }}",
"category" : "{{ post.categories }}",
"url": "{{ post.url }}",
"path": "{{ post.path }}",
"shortdate" : "{{ post.date | date : '%B %d, %Y' }}"
}{% if forloop.last %}{% else %},{% endif %}
{% endfor %}]
}{% if forloop.last %}{% else %},{% endif %}
{% endfor %}],
"tags": [{% for tag in site.tags %}
{
"name": "{{ tag[0] }}",
"size": "{{ tag[1].size }}",
"posts": [
{% for post in tag[1] %}
{
"id": "{{ post.id }}",
"title": "{{ post.title }}",
"category": "{{ post.categories }}",
"url": "{{ post.url }}",
"path": "{{ post.path }}",
"shortdate" : "{{ post.date | date : '%B %d, %Y' }}"
}{% if forloop.last %}{% else %},{% endif %}
{% endfor %}]
}{% if forloop.last %}{% else %},{% endif %}
{% endfor %}],
"paginator" : [
{% for post in site.posts %}
{
"id" : "{{ post.id }}",
"title" : "{{ post.title | escape }}",
"category" : "{{ post.categories }}",
"tags" : "{{ post.tags | join: ', ' }}",
"url" : "{{ post.url }}",
"path" : "{{ post.path }}",
"date" : "{{ post.date }}",
"shortdate" : "{{ post.date | date : '%B %d, %Y' }}"
} {% if forloop.last %}{% else %},{% endif %}
{% endfor %}
]
}