_includes/nav.html in electric-book-classic-theme-0.1.1 vs _includes/nav.html in electric-book-classic-theme-0.1.2
- old
+ new
@@ -1,8 +1,23 @@
{% include metadata %}
+{% if site.nav-source == "nav" %}
+
<div id="nav" class="non-printing">
+ <ol>
+ <li class="nav-series-home"><a href="{{ site.baseurl }}/" title="Home: {{ series-name }}" class="nav-series-home-link">{{ series-name }}</a></li>
+ <li class="nav-book"><a href="{{ web-contents-page }}" title="Contents: {{ title }}" class="nav-book-link">{{ title }}</a></li>
+
+ {% comment %}Fetch recursive navigation{% endcomment %}
+ {% include nav-list nav-tree=web-nav-tree %}
+
+ </ol>
+ </div><!--#nav-->
+
+{% else %}
+
+ <div id="nav" class="non-printing">
<ul>
<li class="nav-series-home"><a href="{{ site.baseurl }}/" title="Home: {{ series-name }}" class="nav-series-home-link">{{ series-name }}</a></li>
<li class="nav-book"><a href="{{ web-contents-page }}" title="Contents: {{ title }}" class="nav-book-link">{{ title }}</a></li>
<ul>
{% comment %}
@@ -23,5 +38,7 @@
{% endfor %}
{% endfor %}
</ul>
</ul>
</div><!--#nav-->
+
+{% endif %}
\ No newline at end of file