feat: initial commit
This commit is contained in:
18
layouts/_partials/header.html
Normal file
18
layouts/_partials/header.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<header class="site-header">
|
||||
<div class="container header-inner">
|
||||
<a class="site-logo" href="/">{{ .Site.Title }}</a>
|
||||
<nav class="site-nav" aria-label="Main">
|
||||
{{ $p := . }}
|
||||
{{ with .Site.Menus.main }}
|
||||
{{ range . }}
|
||||
{{ $active := or ($p.IsMenuCurrent "main" .) ($p.HasMenuCurrent "main" .) }}
|
||||
<a class="site-nav__link {{ if $active }}is-active{{ end }}" href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</nav>
|
||||
<button id="theme-toggle" class="theme-toggle" aria-label="Toggle theme">🌙</button>
|
||||
</div>
|
||||
<div class="progress" id="progress"></div>
|
||||
</header>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user