1
mirror of https://github.com/jlelse/GoBlog synced 2024-06-02 11:44:27 +00:00
GoBlog/templates/footer.gohtml

12 lines
469 B
Plaintext
Raw Normal View History

2020-11-01 17:37:21 +00:00
{{ define "footer" }}
<footer>
{{ with menu .Blog "footer" }}
{{ $first := true }}
{{ range $i, $item := .Items }}
{{ if ne $first true }} &bull; {{ end }}<a
href="{{ $item.Link }}">{{ $item.Title }}</a>{{ $first = false }}
{{ end }}
{{ end }}
2020-11-09 16:04:20 +00:00
<p>&copy; {{ dateformat now "2006" }} {{ with user.Name }}{{ . }}{{ else }}{{ .Blog.Title }}{{ end }}</p>
2020-11-01 17:37:21 +00:00
</footer>
{{ end }}