diff --git a/_includes/navbar.html b/_includes/navbar.html
index 5dd84f3..018c5a0 100644
--- a/_includes/navbar.html
+++ b/_includes/navbar.html
@@ -161,20 +161,30 @@
- {% assign url = page.url %} {% for menu in site.data.menus %} {% if url
- == menu.url %}
-
- {% else %} {% if menu.external %}
-
- {% else %}
-
- {% endif %} {% endif %} {% endfor %}
+ {%- assign url = page.url -%}
+ {%- assign menus = site.data.menus -%}
+ {%- if menus %}
+ {%- for menu in menus -%}
+ {%- if url == menu.url -%}
+
+ {%- else -%}
+ {%- if menu.external -%}
+
+ {%- else -%}
+
+ {%- endif -%}
+ {%- endif -%}
+ {%- endfor -%}
+ {%- else -%}
+
+
+ {%- endif -%}