2017-08-08 19:53:28 +00:00
|
|
|
<!-- Target for toggling the sidebar `.sidebar-checkbox` is for regular
|
|
|
|
styles, `#sidebar-checkbox` for behavior. -->
|
|
|
|
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">
|
|
|
|
|
|
|
|
<!-- Toggleable sidebar -->
|
|
|
|
<div class="sidebar" id="sidebar">
|
|
|
|
|
|
|
|
<nav class="sidebar-nav">
|
|
|
|
<!-- 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 %}
|
|
|
|
|
|
|
|
{% for link in site.links %}
|
2018-12-03 03:05:55 +00:00
|
|
|
{% if link.separator %}
|
|
|
|
<hr />
|
|
|
|
{% elsif link.external %}
|
|
|
|
<a class="sidebar-nav-item{% if page.url == link.url %} active{% endif %}" href="{{ link.url }}" target="_blank">{{ link.title }}</a>
|
|
|
|
{% else %}
|
|
|
|
<a class="sidebar-nav-item{% if page.url == link.url %} active{% endif %}" href="{{ site.url }}{{ link.url }}">{{ link.title }}</a>
|
|
|
|
{% endif %}
|
2017-08-08 19:53:28 +00:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
</div>
|