diff --git a/_includes/header.liquid b/_includes/header.liquid
index d07fc98..7129e76 100644
--- a/_includes/header.liquid
+++ b/_includes/header.liquid
@@ -87,7 +87,10 @@
{% if child.title == 'divider' %}
{% else %}
-
+
{{- child.title -}}
{% endif %}
@@ -97,7 +100,13 @@
{% else %}
{% assign parent_link = p.permalink | remove: 'index.html' %}
- {% if p.permalink contains '/blog/' %}{% assign url = '/blog/' %} {% else %}{% assign url = p.url %}{% endif %}
+ {%- if p.permalink contains '://' -%}
+ {%- assign url = p.permalink -%}
+ {%- elsif p.permalink contains '/blog/' -%}
+ {%- assign url = '/blog/' -%}
+ {%- else -%}
+ {%- assign url = p['url-'] %}
+ {%- endif %}
{{- p.title }}
{% if page.url contains p.url %}