falkon.sgorava.xyz/layouts/partials/header.html
Juraj Oravec caffb5abb3
Add basic hugo site
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2022-04-28 09:04:21 +02:00

28 lines
661 B
HTML

<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
{{ partial "head.html" . }}
<body>
<div class="main">
<header>
<div class="header-bar">
<nav>
<div class="siteTitle">
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
</div> <!--siteTitle-->
<div class="links">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<a class="nav-item{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}" href="{{.URL}}"{{ with .Params.target }} target="{{ . }}"{{ end }}><span class="nav-item-title">{{ .Name }}</span></a>
{{ end }}
</div>
</nav>
</div>
</header>