From 91c8f9564503bacbf8aaca64b28ca1471a55a7ae Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 28 Dec 2017 13:54:46 -0800 Subject: [PATCH] fixing bootstrap demo --- bootstrap/layouts/collection.html | 2 ++ bootstrap/main.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bootstrap/layouts/collection.html b/bootstrap/layouts/collection.html index 9f16e60..141ff53 100644 --- a/bootstrap/layouts/collection.html +++ b/bootstrap/layouts/collection.html @@ -12,6 +12,7 @@ {{end}} + {{if .Meta.Pager.Paged}} + {{end}} {{template "footer" .}} {{end}} diff --git a/bootstrap/main.go b/bootstrap/main.go index c3571c0..fd68cc6 100644 --- a/bootstrap/main.go +++ b/bootstrap/main.go @@ -106,7 +106,7 @@ func (b *builder) Build(srcDir, dstDir string) { Chain(frontmatter.New()). Chain(markdown.New().MarkdownFlags(markdownFlags)). Chain(collection.New()). - Chain(paginate.New("Groups.Blog").Limit(3)). + Chain(paginate.New("Groups.Blog").ItemsPerPage(3)). Chain(index.New(indexMeta)). Chain(tags.New().IndexMeta(tagMeta)). Chain(breadcrumbs.New()).