mirror of https://github.com/jlelse/GoBlog
15 lines
550 B
Plaintext
15 lines
550 B
Plaintext
{{ define "header" }}
|
|
<header>
|
|
<h1><a href="{{ blogrelative .Blog "/" }}" rel="home" title="{{ .Blog.Title }}">{{ .Blog.Title }}</a></h1>
|
|
{{ with .Blog.Description }}<p><i>{{ . }}</i></p>{{ end }}
|
|
<nav>
|
|
{{ with menu .Blog "main" }}
|
|
{{ $first := true }}
|
|
{{ range $i, $item := .Items }}
|
|
{{ if ne $first true }} • {{ end }}<a
|
|
href="{{ $item.Link }}">{{ $item.Title }}</a>{{ $first = false }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</nav>
|
|
</header>
|
|
{{ end }} |