updated sidebar

This commit is contained in:
Scott Austin 2015-06-04 23:29:12 -07:00
parent 9f20b3e693
commit b9c10ca173

View File

@ -4,9 +4,6 @@
<!-- Toggleable sidebar -->
<div class="sidebar" id="sidebar">
<div class="sidebar-item">
<p>{{ site.description }}</p>
</div>
<nav class="sidebar-nav">
<a class="sidebar-nav-item" href="http://obrary.com">Product Page</a>
@ -15,26 +12,6 @@
<a class="sidebar-nav-item" href="http://obrary.com/collections/open-designs">Open Designs</a>
<a class="sidebar-nav-item" href="http://obrary.com/manufacturer">Manufacturers</a>
<a class="sidebar-nav-item" href="http://forums.obrary.com/">Forums</a>
<a class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}" href="{{ site.baseurl }}/">Home</a>
{% comment %}
The code below dynamically generates a sidebar nav of pages with
`layout: page` in the front-matter. See readme for usage.
{% endcomment %}
{% assign pages_list = site.pages | sort:"url" %}
{% for node in pages_list %}
{% if node.title != null %}
{% if node.layout == "page" %}
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ node.url }}">{{ node.title }}</a>
{% endif %}
{% endif %}
{% endfor %}
<a class="sidebar-nav-item" href="{{ site.github.repo }}/archive/v{{ site.version }}.zip">Download</a>
<a class="sidebar-nav-item" href="{{ site.github.repo }}">GitHub project</a>
<span class="sidebar-nav-item">Currently v{{ site.version }}</span>
</nav>
<div class="sidebar-item">