diff --git a/bootstrap/layouts/collection.html b/bootstrap/layouts/collection.html index dfcab98..a7055f7 100644 --- a/bootstrap/layouts/collection.html +++ b/bootstrap/layouts/collection.html @@ -2,10 +2,13 @@ {{template "header" .}} {{template "navbar" .}}
- {{range .Meta.Groups.Blog}} + {{range .Meta.Pager.Items}}

{{.Meta.Title}}

-

{{.Meta.Content}} +

+ {{.Meta.Summary.Intro}} + […more] +

{{end}}
diff --git a/bootstrap/main.go b/bootstrap/main.go index ed62e0d..679ff08 100644 --- a/bootstrap/main.go +++ b/bootstrap/main.go @@ -33,6 +33,7 @@ import ( "github.com/FooSoft/goldsmith-plugins/index" "github.com/FooSoft/goldsmith-plugins/layout" "github.com/FooSoft/goldsmith-plugins/markdown" + "github.com/FooSoft/goldsmith-plugins/paginate" "github.com/FooSoft/goldsmith-plugins/syntax" "github.com/FooSoft/goldsmith-plugins/tags" "github.com/FooSoft/goldsmith-plugins/thumbnail" @@ -105,6 +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(5)). Chain(index.New(indexMeta)). Chain(tags.New().IndexMeta(tagMeta)). Chain(breadcrumbs.New()).