We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f530a68 commit edc85beCopy full SHA for edc85be
layouts/partials/header.html
@@ -16,7 +16,15 @@
16
</div>
17
</a>
18
19
- {{ partial "top-nav.html" . }}
+ <nav>
20
+ <ul class="mt-1 box-content hidden gap-4 md:flex">
21
+ {{ range site.Menus.main }}
22
+ <li {{- if or (eq page .Page) (page.IsDescendant .Page) }} class="border-b-4" {{- end }}>
23
+ <a class="block px-2 py-1" href="{{ .URL }}">{{ .Name }}</a>
24
+ </li>
25
+ {{ end }}
26
+ </ul>
27
+ </nav>
28
29
<div class="flex items-center gap-6">
30
{{ partialCached "search.html" "-" }}
layouts/partials/top-nav.html
0 commit comments