-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimeline3.json
More file actions
81 lines (81 loc) · 3.95 KB
/
timeline3.json
File metadata and controls
81 lines (81 loc) · 3.95 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
layout: null
nav_exclude: true
---
{
"title": {
"text": {
"headline": {{ site.title | smartify | jsonify }},
"text": {{ site.description | smartify | jsonify }}
}
},
"events": [{% for post in site.posts %}{% unless post.categories contains 'era' %}
{
"start_date": { {% if post.start_date %}
"year": "{{ post.start_date | date : '%Y' }}",
"month": "{{ post.start_date | date : '%m' }}",
"day": "{{ post.start_date | date : '%d' }}",
"hour": "{{ post.start_date | date : '%H' }}",
"minute": "{{ post.start_date | date : '%M' }}",
"second": "{{ post.start_date | date : '%S' }}"{% else %}
"year": "{{ post.date | date : '%Y' }}",
"month": "{{ post.date | date : '%m' }}",
"day": "{{ post.date | date : '%d' }}"{% endif %}
},
"end_date": { {% if post.end_date %}
"year": "{{ post.end_date | date : '%Y' }}",
"month": "{{ post.end_date | date : '%m' }}",
"day": "{{ post.end_date | date : '%d' }}",
"hour": "{{ post.end_date | date : '%H' }}",
"minute": "{{ post.end_date | date : '%M' }}",
"second": "{{ post.end_date | date : '%S' }}"{% else %}
"year": "{{ post.date | date : '%Y' }}",
"month": "{{ post.date | date : '%m' }}",
"day": "{{ post.date | date : '%d' }}"{% endif %}
},
"text": {
"headline": "<a href='{{ post.url }}'>{{ post.title }}</a>",
"text": {{ post.excerpt | smartify | jsonify }}
},{% if post.media %}
"media": {
"url": "{{ post.media.url }}"{% if post.media.caption %},
"caption": "{{ post.media.caption }}"{% endif %}{% if post.media.credit %},
"credit": "{{ post.media.credit }}"{% endif %}{% if post.media.thumbnail %},
"thumbnail": "{{ post.media.thumbnail }}"{% endif %}{% if post.media.alt %},
"alt": "{{ post.media.alt }}"{% endif %}{% if post.media.title %},
"title": "{{ post.media.title }}"{% endif %}
},{% endif %}{% if post.background %}
"background": {
"url": "{{ post.background.url }}",
"color": "{{ post.background.color }}"
},{% endif %}
"unique_id": "{{ post.date | date : '%Y-%m-%d' }}-{{ post.slug }}"{% if post.category %},
"group": {{ post.category | smartify | jsonify }}{% endif %}{% if post.autolink %},
"autolink": {{ post.autolink | smartify | jsonify }}{% endif %}{% if post.display_date %},
"display_date": {{ post.display_date | smartify | jsonify }}{% endif %}
}{% unless forloop.last == true %},{% endunless %}{% endunless %}{% endfor %}
],
"eras": [{% for post in site.categories.era reversed %}
{
"start_date": {
"year": "{{ post.start_date | date : '%Y' }}",
"month": "{{ post.start_date | date : '%m' }}",
"day": "{{ post.start_date | date : '%d' }}",
"hour": "{{ post.start_date | date : '%H' }}",
"minute": "{{ post.start_date | date : '%M' }}",
"second": "{{ post.start_date | date : '%S' }}"
},
"end_date": {
"year": "{{ post.end_date | date : '%Y' }}",
"month": "{{ post.end_date | date : '%m' }}",
"day": "{{ post.end_date | date : '%d' }}",
"hour": "{{ post.end_date | date : '%H' }}",
"minute": "{{ post.end_date | date : '%M' }}",
"second": "{{ post.end_date | date : '%S' }}"
},
"text": {
"headline": "{{ post.title }}"
}
}{% unless forloop.last == true %},{% endunless %}{% endfor %}
]
}