forked from AppImage/appimage.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.json
40 lines (40 loc) · 1.63 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
39
40
---
layout: null
---
{
"version": 1,
"home_page_url": "{{ "/" | absolute_url }}",
"feed_url": "{{ "/feed.json" | absolute_url }}",
"description": {{ site.description | jsonify }},
"icon": "{{ "/apple-touch-icon.png" | absolute_url }}",
"favicon": "{{ "/favicon.ico" | absolute_url }}",
"expired": false,
{% if site.author %}
"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 %}
"items": [
{% assign sorted = site.pages | sort: 'permalink' %}
{% for post in sorted %}
{% if post.layout == 'app' && post.published != 'false' %}
{
"name": {% if post.title %}{{ post.title | jsonify }}{% else %}{{ post.name | remove: ".md" | jsonify }}{% endif %},
{% if post.appdata.Description.C %}
"description": {{ post.appdata.Description.C | jsonify }},
{% elsif post.desktop["Desktop Entry"].Comment %}
"description": {{ post.desktop["Desktop Entry"].Comment | jsonify }},
{% endif %}
"categories": [{{ post.desktop["Desktop Entry"].Categories | jsonify }}],
"authors" : {{ post.authors | jsonify }},
"license" : {{ post.license | jsonify }},
"links": {{ post.links | jsonify }},
"icons": {{ post.icons | jsonify }},
"screenshots" : {{ post.screenshots | jsonify }}
}{% if forloop.last == false %},{% endif %}
{% endif %}
{% endfor %}
]
}