diff --git a/docs/_includes/analytics.html b/docs/_includes/analytics.html
index 81c8286a..5d0e9c4b 100644
--- a/docs/_includes/analytics.html
+++ b/docs/_includes/analytics.html
@@ -1,4 +1,4 @@
-{% if site.google_analytics_id %}
+{% if site.google_analytics_id -%}
-{% endif %}
+{% endif -%}
diff --git a/docs/_includes/docs_contents.html b/docs/_includes/docs_contents.html
index d99e8223..4c004fe2 100644
--- a/docs/_includes/docs_contents.html
+++ b/docs/_includes/docs_contents.html
@@ -1,17 +1,15 @@
- {% include search/input.html %}
+ {% include search/input.html -%}
-
- {% if forloop.first %}
-
Back
- {% else %}
- {% assign previous = forloop.index0 | minus: 1 %}
- {% assign previous_page = tutorials[previous] | prepend:"/tutorials/" | append:"/" %}
-
Back
- {% endif %}
-
-
- {% if forloop.last %}
-
Next
- {% else %}
- {% assign next = forloop.index0 | plus: 1 %}
- {% assign next_page = tutorials[next] | prepend:"/tutorials/" | append:"/" %}
-
Next
- {% endif %}
-
+{% for tutorial in tutorials -%}
+ {% assign tutorial_url = tutorial | prepend:"/tutorials/" | append:"/" -%}
+ {% if tutorial_url == page.url -%}
+
+
+ {% if forloop.first -%}
+
Back
+ {% else -%}
+ {% assign previous = forloop.index0 | minus: 1 -%}
+ {% assign previous_page = tutorials[previous] | prepend:"/tutorials/" | append:"/" -%}
+
Back
+ {% endif -%}
-
- {% break %}
- {% endif %}
-{% endfor %}
\ No newline at end of file
+
+ {% if forloop.last -%}
+
Next
+ {% else -%}
+ {% assign next = forloop.index0 | plus: 1 -%}
+ {% assign next_page = tutorials[next] | prepend:"/tutorials/" | append:"/" -%}
+
Next
+ {% endif -%}
+
+
+
+ {% break -%}
+ {% endif -%}
+{% endfor -%}
diff --git a/docs/_includes/step-index.html b/docs/_includes/step-index.html
index eb03b551..798fb7c5 100644
--- a/docs/_includes/step-index.html
+++ b/docs/_includes/step-index.html
@@ -1,65 +1,34 @@
-{% assign docs = site.docs | where_exp: "doc", "doc.url contains '/step-by-step/'" %}
+{% assign docs = site.docs | where_exp: "doc", "doc.url contains '/step-by-step/'" -%}
-{% for tutorial in tutorials %}
- {% assign tutorial_url = tutorial | prepend:"/tutorials/" | append:"/" %}
- {% if tutorial_url == page.url %}
+{% for doc in docs -%}
+ {% if doc.url == page.url -%}
- {% if forloop.first %}
-
Back
- {% else %}
- {% assign previous = forloop.index0 | minus: 1 %}
- {% assign previous_page = tutorials[previous] | prepend:"/tutorials/" | append:"/" %}
-
Back
- {% endif %}
+ {% if forloop.first -%}
+
Back
+ {% else -%}
+ {% assign previous = forloop.index0 | minus: 1 -%}
+
Back
+ {% endif -%}
- {% if forloop.last %}
-
Next
- {% else %}
- {% assign next = forloop.index0 | plus: 1 %}
- {% assign next_page = tutorials[next] | prepend:"/tutorials/" | append:"/" %}
-
Next
- {% endif %}
+ {% if forloop.last -%}
+
Next
+ {% else -%}
+ {% assign next = forloop.index0 | plus: 1 -%}
+
Next
+ {% endif -%}
- {% break %}
- {% endif %}
-{% endfor %}
-
-
-{% for doc in docs %}
- {% if doc.url == page.url %}
-
-
- {% if forloop.first %}
-
Back
- {% else %}
- {% assign previous = forloop.index0 | minus: 1 %}
-
Back
- {% endif %}
-
-
- {% if forloop.last %}
-
Next
- {% else %}
- {% assign next = forloop.index0 | plus: 1 %}
-
Next
- {% endif %}
-
-
-
- {% break %}
- {% endif %}
-{% endfor %}
+ {% break -%}
+ {% endif -%}
+{% endfor -%}
- {% for step in docs %}
-
-
- {{ step.title }}
-
-
- {% endfor %}
+ {% for step in docs -%}
+
+ {{- step.title -}}
+
+ {% endfor -%}
diff --git a/docs/_includes/tutorials_contents.html b/docs/_includes/tutorials_contents.html
index 5c9cdc8e..75fe9fc5 100644
--- a/docs/_includes/tutorials_contents.html
+++ b/docs/_includes/tutorials_contents.html
@@ -1,10 +1,16 @@
- {% for section in site.data.tutorials %}
- {{ section.title }}
-
- {% include tutorials_ul.html items=section.tutorials %}
-
- {% endfor %}
+ {% for section in site.data.tutorials -%}
+ {{ section.title }}
+
+ {% for item in section.tutorials -%}
+ {% assign item_url = item | prepend:"/tutorials/" | append:"/" -%}
+ {% assign p = site.tutorials | where:"url", item_url | first -%}
+
+ {{- p.title -}}
+
+ {% endfor -%}
+
+ {% endfor -%}
diff --git a/docs/_includes/tutorials_contents_mobile.html b/docs/_includes/tutorials_contents_mobile.html
index 901fdf5c..217bc326 100644
--- a/docs/_includes/tutorials_contents_mobile.html
+++ b/docs/_includes/tutorials_contents_mobile.html
@@ -1,10 +1,14 @@
Navigate the tutorials…
- {% for section in site.data.tutorials %}
+ {% for section in site.data.tutorials -%}
- {% include tutorials_option.html items=section.tutorials %}
+ {% for item in section.tutorials -%}
+ {% assign item_url = item | prepend:"/tutorials/" | append:"/" -%}
+ {% assign tutorial = site.tutorials | where: "url", item_url | first -%}
+ {{ tutorial.title }}
+ {% endfor -%}
- {% endfor %}
+ {% endfor -%}
diff --git a/docs/_includes/tutorials_option.html b/docs/_includes/tutorials_option.html
deleted file mode 100644
index 482c2143..00000000
--- a/docs/_includes/tutorials_option.html
+++ /dev/null
@@ -1,5 +0,0 @@
-{% for item in include.items %}
- {% assign item_url = item | prepend:"/tutorials/" | append:"/" %}
- {% assign tutorial = site.tutorials | where: "url", item_url | first %}
-
{{ tutorial.title }}
-{% endfor %}
diff --git a/docs/_includes/tutorials_ul.html b/docs/_includes/tutorials_ul.html
deleted file mode 100644
index a2b61326..00000000
--- a/docs/_includes/tutorials_ul.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
-{% for item in include.items %}
- {% assign item_url = item | prepend:"/tutorials/" | append:"/" %}
- {% assign p = site.tutorials | where:"url", item_url | first %}
- {{ p.title }}
-{% endfor %}
-
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
index 8e9574ad..9234c13c 100644
--- a/docs/_layouts/default.html
+++ b/docs/_layouts/default.html
@@ -1,13 +1,13 @@
-{% include top.html %}
+{%- include top.html -%}
- {% include header.html %}
+ {%- include header.html -%}
- {{ content }}
+ {{- content -}}
- {% include footer.html %}
- {% include anchor_links.html %}
- {% include analytics.html %}
- {% include search/script.html %}
+ {%- include footer.html -%}
+ {%- include anchor_links.html -%}
+ {%- include analytics.html -%}
+ {%- include search/script.html -%}