mirror of https://github.com/jlelse/GoBlog
12 lines
469 B
Plaintext
12 lines
469 B
Plaintext
{{ define "footer" }}
|
|
<footer>
|
|
{{ with menu .Blog "footer" }}
|
|
{{ $first := true }}
|
|
{{ range $i, $item := .Items }}
|
|
{{ if ne $first true }} • {{ end }}<a
|
|
href="{{ $item.Link }}">{{ $item.Title }}</a>{{ $first = false }}
|
|
{{ end }}
|
|
{{ end }}
|
|
<p>© {{ dateformat now "2006" }} {{ with user.Name }}{{ . }}{{ else }}{{ .Blog.Title }}{{ end }}</p>
|
|
</footer>
|
|
{{ end }} |