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

23 lines
797 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>
2023-07-06 07:14:46 +00:00
<nav class="menu">
2022-04-27 13:54:00 +00:00
{{ range .Site.Menus.main }}
2023-07-06 07:14:46 +00:00
<div class="menu-item">
2022-04-27 13:54:00 +00:00
{{ if not .Children }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ else }}
<a>{{ .Name }}↓</a>
2023-07-06 07:14:46 +00:00
<nav class="sub-menu">
2022-04-27 13:54:00 +00:00
{{ range .Children }}
2023-07-06 07:14:46 +00:00
<div class="menu-item"><a href="{{ .URL }}">{{ .Name }}</a></div>
2022-04-27 13:54:00 +00:00
{{ end }}
2023-07-06 07:14:46 +00:00
</nav>
2022-04-27 13:54:00 +00:00
{{ end }}
2023-07-06 07:14:46 +00:00
</div>
2022-04-27 13:54:00 +00:00
{{ end }}
2023-07-06 07:14:46 +00:00
</nav>
2022-04-27 13:54:00 +00:00
</div>
</header>