forked from kimai/www.kimai.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugins.json
28 lines (28 loc) · 1.19 KB
/
plugins.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
---
layout: none
sitemap: false
permalink: /plugins.json
---
{% assign products = site.store | where: "lang", 'en' | sort: 'title' %}
[
{%- for product in products -%}
{
{%- assign translation = site.data['en'].store.items[product.slug] -%}
{%- assign settings = site.data.store[product.slug] -%}
{%- assign developer = site.data.developer[settings.developer] -%}
"name": "{{ product.title }}",
"url": "{{ product.url | absolute_url }}",
{%- if settings.gumroad != nil %}
"buy": "https://gum.co/{{ settings.gumroad }}",{%- endif %}
"developer": {
"name": "{{ developer.name }}",
"homepage": {% if developer.homepage %}"{{ developer.homepage }}"{% else %}null{% endif %}
},
"bundle": {% if settings.bundle %}"{{ settings.bundle.name }}"{% else %}null{% endif %},
"icon": "{{ settings.icon | default: "fas fa-question" }}",
"description": "{{ translation.intro }}",
"new": {% if settings.new %}true{% else %}false{% endif %},
"price": {% if settings.price == nil %}null{% else %}"{{ settings.price }}"{% endif %}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]