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

26 lines
683 B
HTML
Raw Normal View History

2020-10-10 19:09:30 +00:00
<header class="site-header">
<div class="container">
2020-10-10 23:43:26 +00:00
<a href="/" class="site-masthead">
<img class="site-icon" src="/images/avatar.png">
2021-10-18 08:33:36 +00:00
<p class="site-title">i'm abdullah tarawneh, freelance creative and consultant.</p>
2020-10-10 23:43:26 +00:00
</a>
2020-10-10 19:09:30 +00:00
<nav class="site-nav">
<ul>
2021-10-18 04:03:36 +00:00
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<li class='
{{ if or ($currentPage.IsMenuCurrent "main" .) (eq $currentPage.Section .Identifier) }}
active
{{ end }}'>
2020-10-10 23:43:26 +00:00
<a href="{{ .URL | absLangURL }}">
{{ .Pre }}
<span>{{ .Name }}</span>
{{ .Post }}
</a>
2020-10-10 19:09:30 +00:00
</li>
2021-10-18 04:03:36 +00:00
{{ end }}
2020-10-10 19:09:30 +00:00
</ul>
{{ partial "i18nlist.html" . }}
</nav>
</div>
</header>