1

fixing bootstrap demo

This commit is contained in:
Alex Yatskov 2017-12-28 13:54:46 -08:00
parent d12d6e5529
commit 91c8f95645
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@
</div> </div>
{{end}} {{end}}
{{if .Meta.Pager.Paged}}
<ul class="pagination justify-content-center"> <ul class="pagination justify-content-center">
{{if .Meta.Pager.PageCurr.Prev}} {{if .Meta.Pager.PageCurr.Prev}}
<li class="page-item"> <li class="page-item">
@ -45,6 +46,7 @@
</li> </li>
{{end}} {{end}}
</ul> </ul>
{{end}}
</div> </div>
{{template "footer" .}} {{template "footer" .}}
{{end}} {{end}}

View File

@ -106,7 +106,7 @@ func (b *builder) Build(srcDir, dstDir string) {
Chain(frontmatter.New()). Chain(frontmatter.New()).
Chain(markdown.New().MarkdownFlags(markdownFlags)). Chain(markdown.New().MarkdownFlags(markdownFlags)).
Chain(collection.New()). Chain(collection.New()).
Chain(paginate.New("Groups.Blog").Limit(3)). Chain(paginate.New("Groups.Blog").ItemsPerPage(3)).
Chain(index.New(indexMeta)). Chain(index.New(indexMeta)).
Chain(tags.New().IndexMeta(tagMeta)). Chain(tags.New().IndexMeta(tagMeta)).
Chain(breadcrumbs.New()). Chain(breadcrumbs.New()).