forked from BlockchainInstituteChi/weteachblockchain.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.json
43 lines (43 loc) · 2.49 KB
/
map.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: data
permalink: /map.json
---
{
"courses" : [{% for course in site.courses %}
{
"title" : "{{ course.title | strip_html | strip_newlines | xml_escape }}",
"link" : "{{ course.permalink | strip_html | strip_newlines | xml_escape }}",
"summary": "{{ course.summary | strip_html | strip_newlines | truncatewords: 50 | xml_escape }}",
"image" : "{{ course.image | strip_html | strip_newlines | xml_escape }}",
"author" : "{{ course.author }}",
"tags" : "{{ course.tags }}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}],
"modules" : [{% for module in site.modules %}
{
"title" : "{{ module.title | strip_html | strip_newlines | xml_escape }}",
"summary" : "{{ module.summary | strip_html | strip_newlines | truncatewords: 50 | xml_escape }}",{% for course in site.courses %}{% if course.slug == module.course %}
"image" : "{{ course.image | strip_html | strip_newlines | xml_escape }}",
"link" : "{{ course.permalink | strip_html | strip_newlines | xml_escape }}"
{% endif %}{% endfor %}
}{% unless forloop.last %},{% endunless %}
{% endfor %}],
"lessons" : [{% for lesson in site.lessons %}
{
"title" : "{{ lesson.title | strip_html | strip_newlines | xml_escape }}",
"summary" : "{{ lesson.content | strip_html | strip_newlines | truncatewords: 50 | xml_escape }}",
"link" : "{{ lesson.permalink | strip_html | strip_newlines | xml_escape }}",{% for course in site.courses %}{% if course.slug == lesson.course %}
"image" : "{{ course.image | strip_html | strip_newlines | xml_escape }}"{% endif %}{% endfor %}
}{% unless forloop.last %},{% endunless %}
{% endfor %}],
"events" : [{% for event in site.events %}
{
"title": "{{ event.title | strip_html | strip_newlines | xml_escape }}",
"image" : "{{ event.image | strip_html | strip_newlines | xml_escape }}",
"link": "{{ event.permalink | strip_html | strip_newlines | xml_escape }}",
"summary": "{{ event.content | strip_html | strip_newlines | truncatewords: 50 | xml_escape }}",
"date" : "{{ event.date }}",
"eventdate" : "{{ event.eventdate }}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}]
}