{% for link in site.navbar-links %}
+ {% capture before %}{{ link[1] | split: "://" | first }}{% endcapture %}
+ {% capture after %}{{ link[1] | split: "://" | last }}{% endcapture %}
-
- {{ link[0] }}
+ {% assign internal = true %}
+ {% if before != after %}
+ {% if before == "http" or before == "https" %}
+ {% assign internal = false %}
+ {% endif %}
+ {% endif %}
+
+ {% if internal %}
+ {% capture linkurl %}{{ site.baseurl }}/{{ link[1] }}{% endcapture %}
+ {% else %}
+ {% capture linkurl %}{{ link[1] }}{% endcapture %}
+ {% endif %}
+
+ {{ link[0] }}
{% endfor %}
@@ -31,4 +46,4 @@
{% endif %}
-
\ No newline at end of file
+
diff --git a/_layouts/default.html b/_layouts/default.html
index 3956af322625..447999adbd8f 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -15,11 +15,11 @@
-
+
{% include head.html %}
-
+
{% include nav.html %}