forked from tomcritchlow/tomcritchlow.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bookend.json
52 lines (51 loc) · 1.23 KB
/
bookend.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
---
---
{
"bookendVersion": "v1.0",
"shareProviders": [
"facebook",
"twitter",
"email"
],
"components": [
{
"type": "heading",
"text": "More Stories by Tom Critchlow"
},
{% for story in site.stories %}
{
"type": "small",
"title": "{{story.title}}",
"url": "{{story.url}}",
{% if story.layout contains "ampstory" %}
{% assign image = 0 %}
{% for page in story.pages %}
{%if image == 0 %}
{% if page.background %}
"image": "{{page.background}}"
{% assign image = 1 %}
{% endif %}
{% endif %}
{% endfor %}
{% elsif story.layout contains "ampgallery" %}
{% assign image = 0 %}
{% for image in site.static_files %}
{% if image.path contains story.folder %}
"image": "{{image.path}}"
{% assign image = 1 %}
{% endif %}
{% endfor %}
{% endif %}
},
{% endfor %}
{
"type": "cta-link",
"links": [
{
"text": "@tomcritchlow",
"url": "https://twitter.com/tomcritchlow"
}
]
}
]
}