2022-04-27 13:54:00 +00:00
|
|
|
<header class="header-wrapper">
|
2022-05-18 11:45:04 +00:00
|
|
|
<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>
|
2022-05-16 10:46:25 +00:00
|
|
|
</header>
|