瀏覽代碼

fix(partials/sidebar): Use more semantic elements

Sorin Davidoi 6 年之前
父節點
當前提交
6f03ab3055
共有 1 個檔案被更改,包括 10 行新增8 行删除
  1. 10
    8
      layouts/partials/sidebar.html

+ 10
- 8
layouts/partials/sidebar.html 查看文件

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