Bläddra i källkod

fix(partials/sidebar): Use more semantic elements

Sorin Davidoi 6 år sedan
förälder
incheckning
6f03ab3055
1 ändrade filer med 10 tillägg och 8 borttagningar
  1. 10
    8
      layouts/partials/sidebar.html

+ 10
- 8
layouts/partials/sidebar.html Visa fil

@@ -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>