-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathposts.json
53 lines (52 loc) · 1.77 KB
/
posts.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
52
53
---
layout: nil
---
{
"info" : {
"title" : "{{ site.name }}",
"link" : "{{ site.url }}",
"description" : "{{ site.podcast.description }}",
"image" : "{{ site.podcast.image }}"
},
"data" : {
"count" : {{ site.posts | size }},
"posts" : [
{% assign prev_post = null %}
{% for post in site.posts reversed %}
{% if prev_post != null %}
{
"id" : "{{ prev_post.id }}",
"title" : {{ prev_post.title | jsonify }},
"author" : {{ prev_post.author | jsonify }},
"published_at" : "{{ prev_post.date | date: "%Y-%m-%d" }}",
"content" : {{ prev_post.content | jsonify }},
"summary" : {{ prev_post.summary | jsonify }},
"show_notes" : {{ prev_post.show_notes | jsonify }},
"video" : {
"url" : "{{ prev_post.enclosure_url }}",
"duration" : "{{ prev_post.duration }}",
"size" : "{{ prev_post.enclosure_bytes_size }}",
"youtube" : "{{ prev_post.link.youtube }}"
}
},
{% endif %}
{% assign prev_post = post %}
{% endfor %}
{
"id" : "{{ prev_post.id }}",
"title" : {{ prev_post.title | jsonify }},
"author" : {{ prev_post.author | jsonify }},
"published_at" : "{{ prev_post.date | date: "%Y-%m-%d" }}",
"content" : {{ prev_post.content | jsonify }},
"summary" : {{ prev_post.summary | jsonify }},
"show_notes" : {{ prev_post.show_notes | jsonify }},
"video" : {
"url" : "{{ prev_post.enclosure_url }}",
"duration" : "{{ prev_post.duration }}",
"size" : "{{ prev_post.enclosure_bytes_size }}",
"youtube" : "{{ prev_post.link.youtube }}"
}
}
]
}
}