c3re-website/themes/hugo-theme-flat/layouts/partials/header.html

23 lines
784 B
HTML
Raw Normal View History

2023-12-13 22:55:13 +01:00
<header class="header-wrapper">
<div class="header">
2024-01-26 21:24:08 +01:00
<a class="site-title" href="{{ .Site.BaseURL }}">Home</a>
2023-12-13 22:55:13 +01:00
<nav class="menu">
{{ range .Site.Menus.main }}
<div class="menu-item">
{{ if not .Children }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ else }}
<a>{{ .Name }}↓</a>
<nav class="sub-menu">
{{ range .Children }}
<div class="menu-item"><a href="{{ .URL }}">{{ .Name }}</a></div>
{{ end }}
</nav>
{{ end }}
</div>
{{ end }}
</nav>
</div>
</header>