-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.json
45 lines (44 loc) · 2.54 KB
/
data.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
---
---
{
{% for entry in site.posts %}
"{{ entry.url | slugify }}": {
"title": "{{ entry.title | xml_escape }}",
"url": "{{site.url}}{{ entry.url | xml_escape }}",
"slug": "{{ entry.slug | xml_escape }}",
"summary": "{{ entry.content | newline_to_br | replace: '<br />', ' ' | strip_newlines | strip_html | strip | xml_escape | truncatewords: 50 }}",
"content": "{{ entry.content | newline_to_br | replace: '<br />', ' ' | strip_newlines | strip_html | strip | xml_escape }}",
{% if entry.image %}"thumbnail": "{{ entry.image | xml_escape }}",
"image": "{{ entry.image | xml_escape }}"{% else %}
"thumbnail": "{{ site.background | xml_escape }}",
"image": "{{ site.background | xml_escape }}"{% endif %}
},
{% endfor %}
{% for entry in site.team %}
"{{ entry.url | slugify }}": {
"title": "{{ entry.title | xml_escape }}",
"url": "{{site.url}}{{ entry.url | xml_escape }}",
"slug": "{{ entry.slug | xml_escape }}",
"summary": "{{ entry.content | newline_to_br | replace: '<br />', ' ' | strip_newlines | strip_html | strip | xml_escape | truncatewords: 50 }}",
"content": "{{ entry.content | newline_to_br | replace: '<br />', ' ' | strip_newlines | strip_html | strip | xml_escape }}",
{% if entry.image %}"thumbnail": "{{ entry.image | xml_escape }}",
"image": "{{ entry.image | xml_escape }}"{% else %}
"thumbnail": "{{ site.background | xml_escape }}",
"image": "{{ site.background | xml_escape }}"{% endif %}
},
{% endfor %}
{% for entry in site.walks %}
"{{ entry.url | slugify }}": {
"title": "{{ entry.title | xml_escape }}",
"url": "{{site.url}}{{ entry.url | xml_escape }}",
"slug": "{{ entry.slug | xml_escape }}",
"summary": "{{ entry.title | newline_to_br | replace: '<br />', ' ' | strip_newlines | strip_html | strip | xml_escape | truncatewords: 50 }}",
"content": "{{ entry.title | newline_to_br | replace: '<br />', ' ' | strip_newlines | strip_html | strip | xml_escape }}",
{% if entry.image %}"thumbnail": "{{ entry.image | xml_escape }}",
"image": "{{ entry.image | xml_escape }}"{% else %}
"thumbnail": "{{ site.background | xml_escape }}",
"image": "{{ site.background | xml_escape }}"{% endif %}
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
}