File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 < p class ="lead "> {{ site.description }}</ p >
1010 </ div >
1111
12- < ul class ="sidebar-nav ">
13- < li class ="sidebar-nav-item{% if page.title == "Home " %} active{% endif %}">
14- < a href ="{{ site.baseurl }} "> Home</ a >
15- </ li >
12+ < nav class ="sidebar-nav ">
13+ < a class ="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %} " href ="{{ site.baseurl }} "> Home</ a >
1614
1715 {% comment %}
1816 The code below dynamically generates a sidebar nav of pages with
2321 {% for node in pages_list %}
2422 {% if node.title != null %}
2523 {% if node.layout == "page" %}
26- < li class ="sidebar-nav-item{% if page.url == node.url %} active{% endif %} ">
27- < a href ="{{ node.url }} "> {{ node.title }}</ a >
28- </ li >
24+ < a class ="sidebar-nav-item{% if page.url == node.url %} active{% endif %} " href ="{{ node.url }} "> {{ node.title }}</ a >
2925 {% endif %}
3026 {% endif %}
3127 {% endfor %}
3228
33- < li class ="sidebar-nav-item "> < a href ="{{ site.github.repo }}/archive/v{{ site.version }}.zip "> Download</ a > </ li >
34- < li class ="sidebar-nav-item "> < a href ="{{ site.github.repo }} "> GitHub project</ a > </ li >
35- < li class ="sidebar-nav-item "> Currently v{{ site.version }}</ li >
36- </ ul >
29+ < a class ="sidebar-nav-item " href ="{{ site.github.repo }}/archive/v{{ site.version }}.zip "> Download</ a >
30+ < a class ="sidebar-nav-item " href ="{{ site.github.repo }} "> GitHub project</ a >
31+ < span class ="sidebar-nav-item "> Currently v{{ site.version }}</ span >
32+ </ nav >
3733
3834 < p > © {{ site.time | date: '%Y' }}. All rights reserved.</ p >
3935 </ div >
Original file line number Diff line number Diff line change 8585
8686/* Sidebar nav */
8787.sidebar-nav {
88- padding-left : 0 ;
89- list-style : none;
88+ margin-bottom : 1rem ;
9089}
9190.sidebar-nav-item {
9291 display : block;
You can’t perform that action at this time.
0 commit comments