npqhugo/layouts/partials/aside.html

24 lines
690 B
HTML
Raw Normal View History

2020-04-11 19:28:48 +08:00
<aside id="sidenav">
<header>
<a href="{{ .Site.BaseURL }}"><img src="/avatar.png" alt="avatar"></a>
2020-04-11 20:51:04 +08:00
<a id="branding" href="{{ .Site.BaseURL }}">{{ .Site.Title | safeHTML }}</a>
2020-04-11 19:28:48 +08:00
</header>
<nav>
{{ range .Site.Menus.main }}
{{ $url := urls.Parse .URL }}
<a href="{{ $url }}"
{{ if ne $url.Host ""}}
target="_blanck"
{{end}}
>
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
{{end}}
<a href="/contact" >
<i class="far fa-envelope"></i>
<span>contact</span>
</a>
</aside>