hugo-theme-flat/layouts/partials/header.html

23 lines
789 B
HTML
Raw Normal View History

2022-04-27 13:54:00 +00:00
<header class="header-wrapper">
<div class="header">
2022-04-27 13:54:00 +00:00
<a class="site-title" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
<ul class="menu">
{{ range .Site.Menus.main }}
<li class="menu-item">
{{ if not .Children }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ else }}
<a>{{ .Name }}↓</a>
<ul class="sub-menu">
{{ range .Children }}
<li class="menu-item"><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
{{ end }}
</li>
{{ end }}
</ul>
</div>
</header>