File tree 1 file changed +38
-0
lines changed
1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!-- Target for toggling the sidebar `.sidebar-checkbox` is for regular
2
+ styles, `#sidebar-checkbox` for behavior. -->
3
+ < input type ="checkbox " class ="sidebar-checkbox " id ="sidebar-checkbox ">
4
+
5
+ <!-- Toggleable sidebar -->
6
+ < div class ="sidebar " id ="sidebar ">
7
+ < div class ="sidebar-item ">
8
+ < p > {{ site.description }}</ p >
9
+ </ div >
10
+
11
+ < nav class ="sidebar-nav ">
12
+ < a class ="sidebar-nav-item{% if page.title == "Home " %} active{% endif %}" href="/ "> Home</ a >
13
+
14
+ {% comment %}
15
+ The code below dynamically generates a sidebar nav of pages with
16
+ `layout: page` in the front-matter. See readme for usage.
17
+ {% endcomment %}
18
+
19
+ {% assign pages_list = site.pages %}
20
+ {% for node in pages_list %}
21
+ {% if node.title != null %}
22
+ {% if node.layout == "page" %}
23
+ < a class ="sidebar-nav-item{% if page.url == node.url %} active{% endif %} " href ="{{ node.url }} "> {{ node.title }}</ a >
24
+ {% endif %}
25
+ {% endif %}
26
+ {% endfor %}
27
+
28
+ <!--a class="sidebar-nav-item" href="{{ site.github.repo }}/archive/v{{ site.version }}.zip">Download</a>
29
+ <a class="sidebar-nav-item" href="{{ site.github.repo }}">GitHub project</a>
30
+ <span class="sidebar-nav-item">Currently v{{ site.version }}</span-->
31
+ </ nav >
32
+
33
+ < div class ="sidebar-item ">
34
+ < p >
35
+ © {{ site.time | date: '%Y' }}. All rights reserved.
36
+ </ p >
37
+ </ div >
38
+ </ div >
You can’t perform that action at this time.
0 commit comments