-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathportfolio.json
30 lines (29 loc) · 938 Bytes
/
portfolio.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
---
layout: null
---
{
"filters": [{% for filter in site.data.post-filters %}
{
"class": {{ filter.class | jsonify }},
"name": {{ filter.name | jsonify }}
}{% if forloop.last %}{% else %},{% endif %}{% endfor %}
],
"projects": [{% for post in site.projects %}
{
"title": {{ post.title | jsonify }},
"url": {{ post.url | prepend: site.baseurl | jsonify }},
"date": {{ post.date | jsonify }},
"featured": {{ post.featured | jsonify }},
"categories": [{% for category in post.categories %}
{{ category | jsonify }}{% if forloop.last %}{% else %},{% endif %}{% endfor %}
],
"coverImage": {
"xs": "{{ post.cover-image-index }}-xs.jpg",
"sm": "{{ post.cover-image-index }}-sm.jpg",
"md": "{{ post.cover-image-index }}-md.jpg",
"lg": "{{ post.cover-image-index }}-lg.jpg",
"src": "{{ post.cover-image-index }}-src.jpg"
}
}{% if forloop.last %}{% else %},{% endif %}{% endfor %}
]
}