Clean up the site header template a little bit
This commit is contained in:
parent
543112fc51
commit
ce5f0ea678
1 changed files with 3 additions and 6 deletions
|
@ -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 . -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue