1
goldsmith-samples/bootstrap/layouts/collection.html

32 lines
1013 B
HTML
Raw Normal View History

2017-12-10 17:50:36 +00:00
{{define "collection"}}
{{template "header" .}}
{{template "navbar" .}}
<div class="container">
2017-12-28 17:32:25 +00:00
{{range .Meta.Pager.Items}}
2017-12-28 20:14:22 +00:00
<div>
<h1><a href="{{.Path}}">{{.Meta.Title}}</a></h1>
<p>
{{.Meta.Summary.Intro}}
<a href="{{.Path}}">[&hellip;more]</a>
</p>
</div>
2017-12-10 17:50:36 +00:00
{{end}}
2017-12-28 20:14:22 +00:00
<ul class="pagination">
<li class="page-item {{if not .Meta.Pager.PageUrlPrevOk}}disabled{{end}}">
<a class="page-link" href="{{.Meta.Pager.PageUrlPrev}}" tabindex="-1">Previous</a>
</li>
{{range $index, $url := .Meta.Pager.PageUrls}}
<li class="page-item {{if eq $index $.Meta.Pager.PageUrlIndex}}disabled{{end}}">
<a class="page-link" href="{{$url}}">{{$index}}</a>
</li>
{{end}}
<li class="page-item {{if not .Meta.Pager.PageUrlNextOk}}disabled{{end}}">
<a class="page-link" href="{{.Meta.Pager.PageUrlNext}}">Next</a>
</li>
</ul>
2017-12-10 17:50:36 +00:00
</div>
{{template "footer" .}}
{{end}}