forked from fongandrew/hydeout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar-nav-links.html
36 lines (28 loc) · 1.12 KB
/
sidebar-nav-links.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<nav id="sidebar-nav-links">
{% comment %}
{% if site.sidebar_home_link %}
<a class="home-link {% if page.url == '/' %} active{% endif %}"
href="{{ site.baseurl }}/">Home</a>
{% endif %}
{% if site.sidebar_blog_link %}
<a class="page-link {% if page.url == site.sidebar_blog_link %} active{% endif %}"
href="{{ site.baseurl }}{{ site.sidebar_blog_link }}">Blog</a>
{% endif %}
{% endcomment %}
{% comment %}
The code below dynamically generates a sidebar nav of pages with
`sidebar_link: true` in the front-matter. See readme for usage.
{% endcomment %}
<li><a href="/about.html">About</a></li>
<li><a href="/publications.html">Publications</a></li>
<li><a href="/cv.html">CV</a></li>
<li><a href="/category/code.html">Code & Resources</a></li>
<li><a href="/category/computation.html">Computational Concepts</a></li>
<li><a href="/category/non-technical.html">Non-technical</a></li>
{% comment %}
This code automatically generates sidebar links
{% include page-links.html %}
{% include category-links.html %}
{% endcomment %}
{% include custom-nav-links.html %}
</nav>