diff --git a/_includes/header.html b/_includes/header.html
index e31e307..deec0af 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -15,9 +15,8 @@
{% for item in site.data.nav %}
{% assign item_title = item.title | smartify %}
- {% assign item_url = item.url %}
-
{{ item_title }}
+ {{ item_title }}
{% endfor %}
diff --git a/_includes/nav.html b/_includes/nav.html
index 9e396e0..3008524 100755
--- a/_includes/nav.html
+++ b/_includes/nav.html
@@ -15,7 +15,7 @@
{% assign item_url = item.url %}
- {{ item_title }}
+ {{ item_title }}
{% if item_url == '/docs/' %}
@@ -29,17 +29,16 @@
{% if doc_sections and doc.index == false %}
- {% assign section_first = doc_sections | first %}
- {% assign section_url = section_first.url %}
+ {% assign section_url = doc_sections.first.url %}
{% else %}
- {% assign section_url = null %}
+ {% assign section_url = doc_url %}
{% endif %}
- {{ doc_title }}
+ {{ doc_title }}
{% if page.url contains doc_url and doc_sections %}
@@ -48,9 +47,8 @@
{% for section in doc_sections %}
{% assign section_title = section.title | smartify %}
- {% assign section_url = section.url %}
- {{ section_title }}
+ {{ section_title }}
{% endfor %}