-
Notifications
You must be signed in to change notification settings - Fork 1
/
library.json
20 lines (18 loc) · 1.06 KB
/
library.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
title: library
layout: none
permalink: /library.json
---
{ "id": "{{ site.repo }}",
"links": {
"self": "{{ site.url }}{{ site.baseurl }}{{ page.url }}",
"url": "https://www.github.com/{{ site.repo }}"
},
"data": [{% assign grouped = site.domain | group_by: 'category' %}{% for group in grouped %}{% assign items = group.items | sort: 'order' %}{% for item in items %}{% unless item.hidden == "true" %}{
"name": "{{ item.id | remove_first:'/' | escape }}",
"id": "{{ site.repo }}:{{ item.id | remove_first:'/' | escape }}",
{% if item.sty %}"sty": "{{ site.url }}{{ site.baseurl }}/src/sty/{{ item.sty | escape }}",{% endif %}
{% if item.dsl %}"dsl": "{{ site.url }}{{ site.baseurl }}/src/dsl/{{ item.dsl | escape }}",{% endif %}
{% if item.sub %}"sub": "{{ site.url }}{{ site.baseurl }}/src/sub/{{ item.sub | escape }}",{% endif %}
"group": "{{ group.name | escape }}"
}{% if forloop.last %}{% else %},{% endif %}{% endunless %}{% endfor %}{% endfor %}]}