2021-05-04 08:21:14 -05:00
|
|
|
<header class="{{ if .IsHome }}jumbotronContainer{{ end }}">
|
2021-01-03 14:20:32 -06:00
|
|
|
{{- partial "inject/header-before.html" . -}}
|
2021-04-13 09:04:16 -05:00
|
|
|
<div class="titleAndSearchContainer">
|
|
|
|
<div id="titleContainer">
|
2021-04-19 02:57:44 -05:00
|
|
|
<img src='{{ .Site.Params.Logo | default "/logo.svg" }}' />
|
2021-04-19 04:14:05 -05:00
|
|
|
<div style="width: 100%">
|
2021-04-18 06:04:19 -05:00
|
|
|
<div class="titleAndHamburger">
|
|
|
|
<h1>{{ .Site.Title | default "Ficurinia" }}</h1>
|
|
|
|
{{ if .Site.Params.mobileHamburgerNav | default false }}
|
|
|
|
<label id="hamburger-menu" for="main-nav-toggler">
|
|
|
|

|
|
|
|
</label>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2021-04-13 09:04:16 -05:00
|
|
|
<nav>
|
2021-04-18 06:04:19 -05:00
|
|
|
{{ if .Site.Params.mobileHamburgerNav | default false }}
|
|
|
|
<input type="checkbox" id="main-nav-toggler" />
|
|
|
|
{{ end }}
|
|
|
|
<ul id="main-nav">
|
2021-04-13 09:04:16 -05:00
|
|
|
<li><a href="/">Home</a></li>
|
|
|
|
<li><a href="/posts">Posts</a></li>
|
2021-06-12 08:07:39 -05:00
|
|
|
{{ range site.Params.extraContentDirs }}
|
|
|
|
<li><a href="/{{ . }}">{{ . | humanize }}</a></li>
|
|
|
|
{{ end }}
|
2021-04-13 09:04:16 -05:00
|
|
|
{{ $pagesDir := .Site.Params.Pages | default (slice "pages") }}
|
|
|
|
{{ $pagesList := where .Site.RegularPages "Section" "in" $pagesDir }}
|
|
|
|
{{ range $pagesList }}
|
2021-04-14 05:05:31 -05:00
|
|
|
<li><a href="{{ .Permalink }}">
|
|
|
|
{{ or .Params.Button .Title }}
|
|
|
|
</a></li>
|
2021-04-13 09:04:16 -05:00
|
|
|
{{ end }}
|
2021-04-14 04:19:13 -05:00
|
|
|
{{ range .Site.Menus.main }}
|
|
|
|
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
|
|
|
|
{{ end }}
|
2021-04-13 09:04:16 -05:00
|
|
|
{{ if (.Site.Params.showTags | default true) }}
|
|
|
|
<li><a href="/tags">Tags</a></li>
|
|
|
|
{{ end }}
|
|
|
|
{{ if and (.Site.Params.searchMenuLink | default false) (.Site.Params.enableSearch | default true) }}
|
|
|
|
<li><a href="/search">Search</a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
2020-08-24 01:48:03 -05:00
|
|
|
</div>
|
2021-04-13 09:04:16 -05:00
|
|
|
{{ if and (.Site.Params.searchbarEverywhere | default true) (and (.Site.Params.enableSearch | default true) (not (eq .Title "Search"))) }}
|
|
|
|
{{- partial "searchbar.html" . -}}
|
|
|
|
{{ end }}
|
2020-08-24 01:48:03 -05:00
|
|
|
</div>
|
|
|
|
<div id="links">
|
2020-08-24 02:05:01 -05:00
|
|
|
{{ if .Site.Params.showRss | default true }}
|
2021-04-14 04:19:13 -05:00
|
|
|
{{- partial "iconlink" (dict "Identifier" "rss" "Name" "RSS" "URL" "/index.xml") -}}
|
2020-08-24 02:05:01 -05:00
|
|
|
{{ end }}
|
2020-08-24 01:48:03 -05:00
|
|
|
{{ range .Site.Params.links }}
|
|
|
|
{{- partial "nerdlink" . -}}
|
|
|
|
{{ end }}
|
2021-04-14 04:19:13 -05:00
|
|
|
{{ range .Site.Menus.icons }}
|
|
|
|
{{- partial "iconlink" . -}}
|
|
|
|
{{ end }}
|
2020-08-24 01:48:03 -05:00
|
|
|
</div>
|
2021-01-03 14:20:32 -06:00
|
|
|
{{- partial "inject/header-after.html" . -}}
|
2021-05-04 08:21:14 -05:00
|
|
|
{{- partial "jumbotron.html" . -}}
|
2020-08-24 01:48:03 -05:00
|
|
|
</header>
|