website/layouts/partials/header.html

36 lines
1.4 KiB
HTML
Raw Normal View History

2020-08-24 01:48:03 -05:00
<header>
2021-01-03 14:20:32 -06:00
{{- partial "inject/header-before.html" . -}}
2020-08-24 01:48:03 -05:00
<div id="titleContainer">
<img src='{{ .Site.Params.Logo | default "/img/icon.svg" }}' />
<div>
<h1>{{ .Site.Title | default "Ficurinia" }}</h1>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/posts">Posts</a></li>
{{ $pagesDir := .Site.Params.Pages | default (slice "pages") }}
{{ $pagesList := where .Site.RegularPages "Section" "in" $pagesDir }}
{{ range $pagesList }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
{{ if (.Site.Params.showTags | default true) }}
<li><a href="/tags">Tags</a></li>
{{ end }}
2021-04-13 08:21:40 -05:00
{{ if (.Site.Params.enableSearch | default true) }}
<li><a href="/search">Search</a></li>
{{ end }}
2020-08-24 01:48:03 -05:00
</ul>
</nav>
</div>
</div>
<div id="links">
2020-08-24 02:05:01 -05:00
{{ if .Site.Params.showRss | default true }}
2020-08-24 02:10:55 -05:00
{{- partial "nerdlink" (slice "RSS" "/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 }}
</div>
2021-01-03 14:20:32 -06:00
{{- partial "inject/header-after.html" . -}}
2020-08-24 01:48:03 -05:00
</header>