1
This commit is contained in:
Alex Yatskov 2018-01-27 13:43:42 -08:00
parent 52635e2eeb
commit c0b94eb405
2 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<div> <div>
<h2><a href="{{.Path}}">{{.Meta.Title}}</a></h2> <h2><a href="{{.Path}}">{{.Meta.Title}}</a></h2>
<p> <p>
{{.Meta.Summary.Intro}} {{.Meta.Summary.Summary}}
<a href="{{.Path}}">[&hellip;more]</a> <a href="{{.Path}}">[&hellip;more]</a>
</p> </p>
</div> </div>

View File

@ -29,6 +29,7 @@ import (
"github.com/FooSoft/goldsmith" "github.com/FooSoft/goldsmith"
"github.com/FooSoft/goldsmith-components/devserver" "github.com/FooSoft/goldsmith-components/devserver"
"github.com/FooSoft/goldsmith-components/filters/condition" "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/abs"
"github.com/FooSoft/goldsmith-components/plugins/breadcrumbs" "github.com/FooSoft/goldsmith-components/plugins/breadcrumbs"
"github.com/FooSoft/goldsmith-components/plugins/collection" "github.com/FooSoft/goldsmith-components/plugins/collection"
@ -75,9 +76,10 @@ func (b *builder) Build(srcDir, dstDir string) {
errs := goldsmith.Begin(srcDir). errs := goldsmith.Begin(srcDir).
Chain(frontmatter.New()). Chain(frontmatter.New()).
Chain(markdown.New().SummaryKey("Summary")). Chain(markdown.New()).
Chain(summary.New()).
Chain(collection.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(index.New(indexMeta)).
Chain(tags.New().IndexMeta(tagMeta)). Chain(tags.New().IndexMeta(tagMeta)).
Chain(breadcrumbs.New()). Chain(breadcrumbs.New()).