forked from Nitrokey/dongleauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.json
22 lines (22 loc) · 925 Bytes
/
data.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
---
{% raw %}{{% endraw %}{%
for section in site.data.sections %}{%
assign section_file = site.data[section.id] %}"{{ section.title }}":{% raw %}{{% endraw %}{%
for website in section_file.websites %}"{{ website.name }}":{% raw %}{{% endraw %}{%
for tag in website %}{%
if tag[0] != "exceptions" %}"{{ tag[0] }}":{%
if tag[1] == true or tag[1] == false %}{{tag[1]}}{%
else %}"{{ tag[1] }}"{%
endif %}{%
else %}"{{ tag[0] }}":{% raw %}{{% endraw %}{%
for exception in tag[1] %}"{{ exception[0] }}":"{{ exception[1] }}"{%
if forloop.last != true %},{% endif %}{%
endfor %}}{%
endif %}{%
if forloop.last != true %},{% endif %}{%
endfor %}}{%
if forloop.last != true %},{% endif %}{%
endfor %}}{%
if forloop.last != true %},{% endif %}{%
endfor %}}