Browse Source

fix(partials/sidebar): Use more semantic elements

Sorin Davidoi 5 years ago
parent
commit
6f03ab3055
1 changed files with 10 additions and 8 deletions
  1. 10
    8
      layouts/partials/sidebar.html

+ 10
- 8
layouts/partials/sidebar.html View File

@@ -1,4 +1,4 @@
1
-<div class="sidebar">
1
+<aside class="sidebar">
2 2
   <div class="container sidebar-sticky">
3 3
     <div class="sidebar-about">
4 4
       <a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title }}</h1></a>
@@ -7,13 +7,15 @@
7 7
       </p>
8 8
     </div>
9 9
 
10
-    <ul class="sidebar-nav">
11
-      <li><a href="{{ .Site.BaseURL }}">Home</a> </li>
12
-      {{ range .Site.Menus.main -}}
13
-        <li><a href="{{.URL}}"> {{ .Name }} </a></li>
14
-      {{- end }}
15
-    </ul>
10
+    <nav>
11
+      <ul class="sidebar-nav">
12
+        <li><a href="{{ .Site.BaseURL }}">Home</a> </li>
13
+        {{ range .Site.Menus.main -}}
14
+          <li><a href="{{.URL}}"> {{ .Name }} </a></li>
15
+        {{- end }}
16
+      </ul>
17
+    </nav>
16 18
 
17 19
     <p>{{ with .Site.Params.copyright }}{{.}}{{ else }}&copy; {{ now.Format "2006"}}. All rights reserved. {{end}}</p>
18 20
   </div>
19
-</div>
21
+</aside>