2022-05-21 01:32:21 +00:00
|
|
|
<header>
|
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-05-21 01:32:21 +00:00
|
|
|
{{- $canonicalRelPermalink := $currentPage.RelPermalink | replaceRE "^/~seirdy/" "/" }}
|
2022-04-20 03:16:20 +00:00
|
|
|
{{- $isHome := false -}}
|
2022-05-21 01:32:21 +00:00
|
|
|
{{- if eq $currentPage.RelPermalink "/" -}}
|
2022-04-20 03:16:20 +00:00
|
|
|
{{- $isHome = true -}}
|
2022-04-26 00:28:13 +00:00
|
|
|
{{- end }}
|
2022-05-21 01:32:21 +00:00
|
|
|
<li
|
|
|
|
{{ if $isHome -}}
|
|
|
|
itemprop="sameAs"
|
|
|
|
{{ else -}}
|
|
|
|
itemprop="isPartOf"
|
|
|
|
{{ end -}}
|
2022-05-30 22:49:31 +00:00
|
|
|
itemscope="" itemtype="https://schema.org/Blog https://schema.org/WebSite"
|
2022-05-21 01:32:21 +00:00
|
|
|
itemid="{{ .Site.Params.CanonicalBaseURL }}/">
|
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-30 23:09:40 +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>
|