From c0b94eb405adfef48428b254548afe50105b0526 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 27 Jan 2018 13:43:42 -0800 Subject: [PATCH] . --- bootstrap/layouts/collection.html | 2 +- bootstrap/main.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bootstrap/layouts/collection.html b/bootstrap/layouts/collection.html index 4c733b5..7b7d966 100644 --- a/bootstrap/layouts/collection.html +++ b/bootstrap/layouts/collection.html @@ -6,7 +6,7 @@

{{.Meta.Title}}

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

diff --git a/bootstrap/main.go b/bootstrap/main.go index c942d8d..ba1a81f 100644 --- a/bootstrap/main.go +++ b/bootstrap/main.go @@ -29,6 +29,7 @@ import ( "github.com/FooSoft/goldsmith" "github.com/FooSoft/goldsmith-components/devserver" "github.com/FooSoft/goldsmith-components/filters/condition" + "github.com/FooSoft/goldsmith-components/filters/summary" "github.com/FooSoft/goldsmith-components/plugins/abs" "github.com/FooSoft/goldsmith-components/plugins/breadcrumbs" "github.com/FooSoft/goldsmith-components/plugins/collection" @@ -75,9 +76,10 @@ func (b *builder) Build(srcDir, dstDir string) { errs := goldsmith.Begin(srcDir). Chain(frontmatter.New()). - Chain(markdown.New().SummaryKey("Summary")). + Chain(markdown.New()). + Chain(summary.New()). Chain(collection.New()). - Chain(paginate.New("Groups.Blog").InheritKeys("Layout").ItemsPerPage(3)). + Chain(paginate.New("Groups.Blog").InheritKeys("Layout").ItemsPerPage(4)). Chain(index.New(indexMeta)). Chain(tags.New().IndexMeta(tagMeta)). Chain(breadcrumbs.New()).