diff --git a/templates/index.html b/templates/index.html
index 174be46..e7d60e7 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -22,16 +22,15 @@
{{ section.content | safe }}
-
- {% if config.extra.links %}
+ {%- if config.extra.links -%}
- {% for link in config.extra.links %}
+ {%- for link in config.extra.links -%}
- {% endfor %}
+ {%- endfor -%}
- {% endif %}
+ {%- endif -%}