forked from pcfgallery/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pcfbuilder.json
17 lines (17 loc) · 1.04 KB
/
pcfbuilder.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
layout: null
---
[{% assign site_posts = site.posts | sort: 'title' %} {% for post in site_posts %} {% assign author_name = "" %} {% for page_author in post.authors %} {% assign author = site.data.authors[page_author] %} {% if author %} {% assign author_name = author_name | append: author.name %} {% endif %} {% unless forloop.last %} {% assign author_name = author_name | append:", " %} {% endunless %} {% endfor %}
{
"title": "{{ post.title }}",
"description": "{{ post.content | strip_html | strip }}",
"link": "{{ post.url | prepend: site.baseurl | prepend: site.url }}",
"image": "{{ post.image | prepend: site.baseurl | prepend: site.url }}",
"download": "{{ post.download }}",
"author":"{{author_name}}",
"model_support": {{post.model_support}},
"canvas_support": {{post.canvas_support}},
"portals_support": {% if post.portals_support == true %}true{% else %}false{% endif %},
"license_defined": {{post.license_defined}}
}{% unless forloop.last %}, {% endunless %} {% endfor %}
]