-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsettings.js
21 lines (21 loc) · 848 Bytes
/
settings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
---
{% assign skip_keys = "posts,pages,maruku,redcarpet,include,keep_files,redcloth,rdiscount,extensions,links,owner,prose,static_files,kramdown,html_pages,exclude" | split: "," %}
{% assign array_keys = "tags,categories,exclude" | split: "," %}
jekyllSettingsCallback({
{% for item in site %}
{% if skip_keys contains item[0] %}{% continue %}{% else %}
{% if array_keys contains item[0] %}
"{{ item[0] }}" : [
{% for value in item[1] %}
"{{ value[0] }}"
{% if forloop.last %}{% else %},{% endif %}
{% endfor %}
]
{% else %}
"{{ item[0] }}" : "{{ item[1] | strip_newlines }}"
{% endif %}
{% endif %}
{% if forloop.last %}{% else %},{% endif %}
{% endfor %}
})