Website-Redesign/layouts/partials/header.html

31 lines
1.1 KiB
HTML
Raw Normal View History

2020-08-24 01:48:03 -05:00
<header>
<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 }}
</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>
</header>