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