abdullahtarawneh.com/layouts/partials/site-header.html

35 lines
1.3 KiB
HTML
Raw Normal View History

2020-10-10 19:09:30 +00:00
<header class="site-header">
<div class="container">
2024-05-26 06:02:46 +00:00
<a href="/" class="site-masthead" title="hi, i'm a.">
<img class="site-icon" width=32 src="/images/people/avatar.png" alt="">
<p class="site-title">hi, i'm a.</p>
2020-10-10 23:43:26 +00:00
</a>
2024-06-02 05:04:04 +00:00
<a href="/support" class="support">
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><title>tabler:tip-jar</title><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M14 10h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3H10m2-7v1m0 6v1"/><path d="M17 4v1.882c0 .685.387 1.312 1 1.618s1 .933 1 1.618V18a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3V9.118c0-.685.387-1.312 1-1.618s1-.933 1-1.618V4M6 4h12z"/></g></svg>
<span>support me</span>
</a>
2024-05-26 06:02:46 +00:00
<nav class="site-nav" aria-label="Main navigation">
2020-10-10 19:09:30 +00:00
<ul>
2021-10-18 04:03:36 +00:00
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
2024-05-26 06:02:46 +00:00
{{ $active := $currentPage.IsMenuCurrent "main" . }}
<li
2024-05-26 06:02:46 +00:00
{{- if $active }}
class="active"
{{ end }}>
2024-05-26 06:02:46 +00:00
<a href="{{ .URL | absLangURL }}" {{- if $active }}
aria-current="page"
{{ end }}>
2020-10-10 23:43:26 +00:00
{{ .Pre }}
<span>{{ .Name }}</span>
{{ .Post }}
</a>
2020-10-10 19:09:30 +00:00
</li>
2021-10-18 04:03:36 +00:00
{{ end }}
2024-05-26 06:02:46 +00:00
</ul>
2020-10-10 19:09:30 +00:00
</nav>
</div>
</header>
<div style="position: relative;">
<div id="top" style="scroll-margin-top: var(--header-height);"></div>
</div>