2022-06-02 00:30:47 +00:00
|
|
|
<header>
|
2022-07-13 15:31:20 +00:00
|
|
|
<a href="#h1">Skip to content</a>
|
2022-06-02 00:30:47 +00:00
|
|
|
<nav aria-label="Global">
|
|
|
|
<ul>
|
|
|
|
{{- $currentPage := . -}}
|
|
|
|
{{- $canonicalRelPermalink := $currentPage.RelPermalink | replaceRE "^/~seirdy/" "/" }}
|
|
|
|
{{- $isHome := false -}}
|
|
|
|
{{- if eq $canonicalRelPermalink "/" -}}
|
|
|
|
{{- $isHome = true -}}
|
|
|
|
{{- end }}
|
|
|
|
<li
|
|
|
|
itemprop="isPartOf"
|
|
|
|
itemscope="" itemtype="https://schema.org/Blog https://schema.org/WebSite"
|
|
|
|
itemid="{{ .Site.Params.CanonicalBaseURL }}/">
|
|
|
|
<a rel="home" itemprop="url" href="{{ .Site.BaseURL }}"{{- if $isHome }} aria-current="page"{{- end -}}>
|
|
|
|
{{- if $isHome -}}
|
|
|
|
<strong itemprop="name">{{ .Site.Title }}</strong>
|
|
|
|
{{- else -}}
|
|
|
|
<span itemprop="name">{{ .Site.Title }}</span>
|
|
|
|
{{- end -}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{ range .Site.Menus.main -}}
|
|
|
|
{{ $isCurrent := false }}
|
|
|
|
<li itemprop="hasPart" itemscope="" itemtype="https://schema.org/SiteNavigationElement">
|
2022-06-30 00:54:51 +00:00
|
|
|
<a href="{{ .URL | absURL}}" itemprop="url"
|
2022-06-20 03:15:56 +00:00
|
|
|
{{- if or (eq .Identifier "notes" ) (eq .Identifier "articles") (eq .Identifier "bookmarks") }} rel="feed"{{- end }}
|
2022-06-06 22:59:20 +00:00
|
|
|
{{- if or (eq $currentPage.RelPermalink .URL) ($currentPage.HasMenuCurrent "main" .) -}}{{- $isCurrent = true }} aria-current="page"{{- end -}}>
|
2022-06-20 03:15:56 +00:00
|
|
|
{{- if or $isCurrent (eq $currentPage.Section .Title) (and (eq $currentPage.Section "posts") (eq .Identifier "articles")) -}}
|
2022-06-02 00:30:47 +00:00
|
|
|
<strong itemprop="name">{{- .Name -}}</strong>
|
|
|
|
{{- else -}}
|
|
|
|
<span itemprop="name">{{- .Name -}}</span>
|
|
|
|
{{- end -}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2022-07-08 00:05:33 +00:00
|
|
|
{{ partial "breadcrumblist.html" . }}
|
2022-06-02 00:30:47 +00:00
|
|
|
</header>
|