hugo-theme-contentful/layouts/partials/header.html

10 lines
214 B
HTML
Raw Normal View History

2019-09-20 16:11:12 +00:00
{{ if not .IsPage }}
<header>
<h1>{{ $.Site.Title }}</h1>
<nav>
{{ range $.Site.Menus.main -}}
<a href="{{ .URL | absURL }}">{{ .Name }}</a>
{{ end }}
</nav>
</header>
{{ end }}