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()).