File tree 1 file changed +22
-2
lines changed
1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
< link rel ="stylesheet " href ="{{ "/assets/css/sidebar.css" | relative_url }}" media="screen and (min-width: 70em)">
2
2
< aside style ="display: none ">
3
- {% include menu.html menu=site.navigation text=true icon=true %}
4
- {% include menu.html menu=site.external text=true icon=true %}
3
+ < nav >
4
+ {%- for item in site.navigation -%}
5
+ {%- assign node = site.pages | where: "name", item.file | first -%}
6
+ {%- assign url = item.url | default: node.url -%}
7
+ {%- assign title = item.title | default: node.title -%}
8
+ {%- assign icon = item.icon | default: item.sidebaricon -%}
9
+ < a aria-label ="{{ title }} " href ="{{ url | relative_url }} " {% if url == page.url %}class ="selected "{% endif %} >
10
+ < svg aria-hidden ="true " class ="icon "> < use xlink:href ="{{ "/assets/fontawesome/icons.svg" | relative_url }}#{{ icon }}"> </ use > </ svg >
11
+ < span aria-hidden ="true "> {{ title }}</ span >
12
+ </ a >
13
+ {%- endfor -%}
14
+ {%- for item in site.external -%}
15
+ {%- assign node = site.pages | where: "name", item.file | first -%}
16
+ {%- assign url = item.url | default: node.url -%}
17
+ {%- assign title = item.title | default: node.title -%}
18
+ {%- assign icon = item.icon | default: item.sidebaricon -%}
19
+ < a aria-label ="{{ title }} " href ="{{ url | relative_url }} " {% if url == page.url %}class ="selected "{% endif %} >
20
+ < svg aria-hidden ="true " class ="icon "> < use xlink:href ="{{ "/assets/fontawesome/icons.svg" | relative_url }}#{{ icon }}"> </ use > </ svg >
21
+ < span aria-hidden ="true "> {{ title }}</ span >
22
+ </ a >
23
+ {%- endfor -%}
24
+ </ nav >
5
25
< div class ="description "> {{ site.description }}</ div >
6
26
</ aside >
You can’t perform that action at this time.
0 commit comments