-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfeed.json
38 lines (38 loc) · 1.62 KB
/
feed.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
---
layout: null
---
{
"code": "200",
"items": [
{% for post in site.posts limit:10 %}
{
"id": "{{ post.url | absolute_url | sha1 }}",
"title": {{ post.title | jsonify }},
"short_text": {{ post.short_text | strip_html | strip_newlines | jsonify }},
"url": "{{ post.url | absolute_url }}",
"image": "{{ post.thumbnail | absolute_url }}",
"ingame_thumbnail": "{{ post.ingame_thumbnail | absolute_url }}",
"website_v2_thumbnail": "{{ post.website_v2_thumbnail | absolute_url }}",
"date_published": "{{ post.date | date_to_xmlschema }}",
"date_modified": "{{ post.date | date_to_xmlschema }}",
{% if post.author %}
"author": {% if post.author.name %} {
"name": "{{ post.author.name }}",
"url": {% if post.author.url %}"{{ post.author.url }}"{% else %}null{% endif %},
"avatar": {% if post.author.avatar %}"{{ post.author.avatar }}"{% else %}null{% endif %}
}
{% else %}"{{ post.author }}"{% endif %}
{% else %}
"author": {% if site.author.name %} {
"name": "{{ site.author.name }}",
"url": {% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},
"avatar": {% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}
}
{% else %}
"{{ site.author }}"
{% endif %}
{% endif %}
}{% if forloop.last == false %},{% endif %}
{% endfor %}
]
}