diff --git a/_includes/nav.html b/_includes/nav.html
index a0d26b8..c2bdf66 100644
--- a/_includes/nav.html
+++ b/_includes/nav.html
@@ -7,33 +7,31 @@
- {% if site.title-img %}
+ {%- if site.title-img -%}
- {% else %}
+ {%- else -%}
{{ site.title }}
- {% endif %}
+ {%- endif -%}
- {% for link in site.navbar-links %}
- {% if link[1].first %}
+ {%- for link in site.navbar-links -%}
+ {%- if link[1].first %}
-
{{ link[0] }}
- {% for childlink in link[1] %}
- {% for linkparts in childlink %}
- {% include navbarlink.html link=linkparts %}
- {% endfor %}
- {% endfor %}
+ {%- for childlink in link[1] -%}
+ {%- for linkparts in childlink %}
+
{{ linkparts[0] }}
+ {%- endfor -%}
+ {%- endfor %}
{% else %}
- -
- {% include navbarlink.html link=link %}
-
- {% endif %}
- {% endfor %}
+ - {{ link[0] }}
+ {%- endif -%}
+ {%- endfor -%}
diff --git a/_includes/navbarlink.html b/_includes/navbarlink.html
deleted file mode 100644
index d8005e6..0000000
--- a/_includes/navbarlink.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{% capture before %}{{ include.link[1] | split: "://" | first }}{% endcapture %}
-{% capture after %}{{ include.link[1] | split: "://" | last }}{% endcapture %}
-{% assign internal = true %}
-{% if before != after %}
- {% if before == "http" or before == "https" %}
- {% assign internal = false %}
- {% endif %}
-{% endif %}
-
-{% if internal %}
- {% capture linkurl %}{{ include.link[1] | relative_url }}{% endcapture %}
-{% else %}
- {% capture linkurl %}{{ include.link[1] }}{% endcapture %}
-{% endif %}
-
-{{ include.link[0] }}