2022-05-06 02:57:27 +00:00
|
|
|
<header id="banner" itemprop="hasPart" itemscope itemtype="https://schema.org/WPHeader">
|
2022-04-22 15:49:27 +00:00
|
|
|
<nav aria-label="Global">
|
2022-05-06 17:31:26 +00:00
|
|
|
<ul>
|
2022-04-02 05:21:00 +00:00
|
|
|
{{- $currentPage := . -}}
|
2022-04-20 03:16:20 +00:00
|
|
|
{{- $isHome := false -}}
|
|
|
|
{{- if eq $currentPage.Permalink .Site.BaseURL -}}
|
|
|
|
{{- $isHome = true -}}
|
2022-04-26 00:28:13 +00:00
|
|
|
{{- end }}
|
2022-05-06 02:57:27 +00:00
|
|
|
<li itemprop="hasPart" itemscope itemtype="https://schema.org/SiteNavigationElement">
|
2022-04-26 00:28:13 +00:00
|
|
|
<a rel="home" itemprop="url" href="{{ .Site.BaseURL }}"{{- if $isHome }} aria-current="page"{{- end -}}>
|
2022-04-20 03:16:20 +00:00
|
|
|
{{- if $isHome -}}
|
|
|
|
<strong itemprop="name">{{ .Site.Title }}</strong>
|
|
|
|
{{- else -}}
|
|
|
|
<span itemprop="name">{{ .Site.Title }}</span>
|
|
|
|
{{- end -}}
|
|
|
|
</a>
|
2022-04-02 05:21:00 +00:00
|
|
|
</li>
|
|
|
|
{{ range .Site.Menus.main -}}
|
2022-04-19 02:54:40 +00:00
|
|
|
{{ $isCurrent := false }}
|
2022-05-06 02:57:27 +00:00
|
|
|
<li itemProp="hasPart" itemscope itemtype="https://schema.org/SiteNavigationElement">
|
2022-04-26 00:28:13 +00:00
|
|
|
<a href="{{ .URL }}" itemprop="url" {{- if or (eq $currentPage.RelPermalink .URL) ($currentPage.HasMenuCurrent "main" .) -}}{{- $isCurrent = true }} aria-current="page"{{- end -}}>
|
2022-04-19 02:54:40 +00:00
|
|
|
{{- if or $isCurrent (eq $currentPage.Section .Title) -}}
|
|
|
|
<strong itemprop="name">{{- .Name -}}</strong>
|
|
|
|
{{- else -}}
|
|
|
|
<span itemprop="name">{{- .Name -}}</span>
|
|
|
|
{{- end -}}
|
|
|
|
</a>
|
2022-04-02 05:21:00 +00:00
|
|
|
</li>
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</header>
|