Clean up the site header template a little bit

This commit is contained in:
Eryn Wells 2022-11-04 08:05:07 -07:00
parent 543112fc51
commit ce5f0ea678

View file

@ -1,20 +1,17 @@
{{- $currentPage := . -}}
{{- $url := .RelPermalink -}}
<header class="site">
<div class="platter grid">
<h1 class="site">
<a class="site-name" href="{{ `` | absURL }}">Eryn Wells</a>
</h1>
{{- $currentPage := . -}}
{{ with site.Menus.main }}
<nav class="site bulleted">
{{ with site.Menus.main }}
{{- range . -}}
<li{{ if $currentPage.HasMenuCurrent "main" . }} class="active"{{ end }}><span>{{ .Name }}</span></li>
{{- end -}}
</nav>
{{ end }}
</nav>
<nav class="social">
{{ with site.Menus.social }}
{{- range . -}}