fix(partials/sidebar): Use more semantic elements
This commit is contained in:
parent
92610430fa
commit
6f03ab3055
|
@ -1,4 +1,4 @@
|
||||||
<div class="sidebar">
|
<aside class="sidebar">
|
||||||
<div class="container sidebar-sticky">
|
<div class="container sidebar-sticky">
|
||||||
<div class="sidebar-about">
|
<div class="sidebar-about">
|
||||||
<a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title }}</h1></a>
|
<a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title }}</h1></a>
|
||||||
|
@ -7,13 +7,15 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="sidebar-nav">
|
<nav>
|
||||||
<li><a href="{{ .Site.BaseURL }}">Home</a> </li>
|
<ul class="sidebar-nav">
|
||||||
{{ range .Site.Menus.main -}}
|
<li><a href="{{ .Site.BaseURL }}">Home</a> </li>
|
||||||
<li><a href="{{.URL}}"> {{ .Name }} </a></li>
|
{{ range .Site.Menus.main -}}
|
||||||
{{- end }}
|
<li><a href="{{.URL}}"> {{ .Name }} </a></li>
|
||||||
</ul>
|
{{- end }}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
<p>{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}}. All rights reserved. {{end}}</p>
|
<p>{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}}. All rights reserved. {{end}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</aside>
|
||||||
|
|
Loading…
Reference in New Issue