feat: updates
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
<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 }}
|
||||
<header class="site-header sticky top-0 backdrop-blur supports-[backdrop-filter]:bg-ctp-base/80 dark:supports-[backdrop-filter]:bg-ctp-base/70 border-b border-ctp-surface1 dark:border-ctp-surface1">
|
||||
<div class="container header-inner max-w-prose mx-auto flex items-center gap-3 px-4 py-3">
|
||||
<a class="site-logo font-semibold mr-auto no-underline text-inherit" href="/">{{ .Site.Title }}</a>
|
||||
<nav class="site-nav flex gap-2 flex-wrap" aria-label="Main">
|
||||
<a class="site-nav__link no-underline text-inherit border border-transparent rounded-md px-2 py-1 hover:bg-ctp-surface0/70" href="/posts/">All posts</a>
|
||||
<a class="site-nav__link no-underline text-inherit border border-transparent rounded-md px-2 py-1 hover:bg-ctp-surface0/70" href="/about/">About</a>
|
||||
</nav>
|
||||
<button id="theme-toggle" class="theme-toggle" aria-label="Toggle theme">🌙</button>
|
||||
</div>
|
||||
<div class="progress" id="progress"></div>
|
||||
<div class="progress fixed left-0 top-0 h-0.5 bg-ctp-teal w-0" id="progress"></div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user