-
Notifications
You must be signed in to change notification settings - Fork 5
/
fab.json
43 lines (39 loc) · 1.06 KB
/
fab.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
---
layout: null
---
[
{% for ep in site.posts %}
{
"id": "{{ep.guid}}",
"title": "{{ep.title}}",
"description": "{{ep.summary}}",
"duration": "{{ep.podcast_duration}}",
"thumbURL": "{{site.url}}/{{ep.mp4_thumbnail | escape}}",
"imgURL": "{{site.url}}/{{ep.mp4_thumbnail | escape}}",
"videoURL": "{{site.mp4_cdn_url}}{{ep.mp4_filename}}",
"tags": "{{ep.tags | join: ', '}}",
"categories": [
"{{ep.categories[0]}}"
],
"channel_id": "{{ep.categories}}",
"recommendations":
{% assign my_array = "" | split: ", " %}
{% for tag in ep.tags %}
{% for mypost in site.tags[tag] %}
{% if mypost.url != ep.url %}
{% assign my_array = my_array | push: mypost.guid %}
{% endif %}
{% endfor %}
{% endfor %}
{{ my_array | jsonify }}
} {% unless forloop.last %},{% endunless %}
{% endfor %},
{
"globalRecommendations": [
{% assign globalRecs = site.posts | where: "global_recommendation", true %}
{% for ep in globalRecs %}
"{{ ep.guid }}"{% unless forloop.last %},{% endunless %}
{% endfor %}
]
}
]