generated from thiagorossener/jekflix-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeed.json
More file actions
25 lines (25 loc) · 977 Bytes
/
feed.json
File metadata and controls
25 lines (25 loc) · 977 Bytes
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
---
layout: null
---
{
"code": 200,
"posts": [{% for post in site.posts limit:4 %}
{% assign author = site.authors | where: "name", post.author | first %}
{
"id": "{{ post.url | absolute_url }}",
"url": "https://datenshi.pw{{ post.url | absolute_url }}",
"title": {{ post.title | jsonify }},
"content_html": {{ post.description | jsonify }},
"date_published": "{{ post.date | date_to_xmlschema }}",
"category": "{{ post.category }}",
{% if post.image %}
"post_thumbnail": "{{ post.image }}",
{% else %}
"post_thumbnail": "https://datenshi.pw/assets/img/off.jpg",
{% endif %}
"post_author": "{{ author.display_name }}",
"post_author_url": "{{ author.url }}",
"wordcount": {{ post.content | number_of_words }}
}{% unless forloop.last %},{% endunless %}{% endfor %}
]
}