forked from 2factorauth/twofactorauth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reduce json size as of build, ~800k to ~200k * Add json verification * Cleanup for readability also saves ~1K of extra space by removing more spaces * Fix tabs and spaces * tabbing cleanup
- Loading branch information
1 parent
349afec
commit 941ef98
Showing
3 changed files
with
27 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
--- | ||
--- | ||
{ | ||
{% for section in site.data.sections %} | ||
{% assign section_file = site.data[section.id] %} | ||
"{{ section.title }}": { | ||
{% for website in section_file.websites %} | ||
"{{ website.name }}": { | ||
{%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] }}": { | ||
{% 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 %} | ||
} | ||
{% 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 %}} |