_includes/navigation.html in jekyll-theme-twenty-0.1.12 vs _includes/navigation.html in jekyll-theme-twenty-0.1.14
- old
+ new
@@ -1,10 +1,14 @@
<nav id="nav">
<ul>
{%- for item in include.menu -%}
{%- if item.menu[0] -%}
<li class="submenu {% if item.url == page.url %} current {% endif %}">
+ {%- if item.url -%}
<a href="{{ item.url | absolute_url }}">{{ item.title }}</a>
+ {%- else -%}
+ <a href="#">{{ item.title }}</a>
+ {%- endif -%}
<ul>
{%- for subitem in item.menu -%}
<li {% if subitem.url == page.url %} class="current" {% endif %}>
<a href="{{ subitem.url | absolute_url }}">{{ subitem.title }}</a>
</li>