Website-Redesign/layouts/partials/header.html

49 lines
1.8 KiB
HTML
Raw Normal View History

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" . -}}
<div class="titleAndSearchContainer">
<div id="titleContainer">
<img src='{{ .Site.Params.Logo | default "/logo.svg" }}' />
2021-12-16 05:37:20 -06:00
<div class="rightOfLogo">
<div class="titleAndHamburger">
<h1>{{ .Site.Title | default "Ficurinia" }}</h1>
2021-12-16 05:37:20 -06:00
{{ if (.Site.Params.mobileHamburgerNav | default false) }}
<label id="hamburger-menu" for="main-nav-toggler">
&#xf85b;
</label>
{{ end }}
</div>
2021-12-16 05:37:20 -06:00
<div id="wide_nav">
{{- partial "header_navigation.html" . -}}
</div>
</div>
2020-08-24 01:48:03 -05:00
</div>
{{ 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 }}
{{- 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 }}
{{ range .Site.Menus.icons }}
{{- partial "iconlink" . -}}
{{ end }}
2020-08-24 01:48:03 -05:00
</div>
2021-12-16 05:37:20 -06:00
{{ if and
(.Site.Params.enableSidebarLayout | default false)
(or
(not (.Site.Params.enableJumbotron | default false))
(not .IsHome)
)
}}
<div id="sidebar_nav">
{{- partial "header_navigation.html" . -}}
</div>
{{ end }}
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>