hugo-theme-anubis2/layouts/partials/header.html
Junyi Hou b2702eff55 Merge branch 'main' of https://github.com/Mitrichius/hugo-theme-anubis into anubis
# Conflicts:
#	README.md
#	assets/css/main.css
#	layouts/partials/header.html
2024-01-14 17:09:16 +08:00

24 lines
743 B
HTML

<div class="header-top">
<div class="header-top-left">
{{ partial "site-title.html" . }}
{{ partial "social.html" . }}
</div>
<div class="header-top-right">
{{ partial "theme-switcher.html" . }}
</div>
</div>
{{ if .Site.Menus.main }}
<nav class="noselect">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<a class="{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
{{ end }}
</nav>
{{ else }}
<nav></nav>
{{ end }}
{{ if .Site.Params.mathjax }}{{ partial "mathjax_support.html" . }}{{ end }}
{{ partial "header-extra.html" . }}