integrate paginate
This commit is contained in:
parent
18ce27d6d4
commit
d5181b4c96
@ -2,10 +2,13 @@
|
|||||||
{{template "header" .}}
|
{{template "header" .}}
|
||||||
{{template "navbar" .}}
|
{{template "navbar" .}}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{{range .Meta.Groups.Blog}}
|
{{range .Meta.Pager.Items}}
|
||||||
<div>
|
<div>
|
||||||
<h1><a href="{{.Path}}">{{.Meta.Title}}</a></h1>
|
<h1><a href="{{.Path}}">{{.Meta.Title}}</a></h1>
|
||||||
<p>{{.Meta.Content}}</h1>
|
<p>
|
||||||
|
{{.Meta.Summary.Intro}}
|
||||||
|
<a href="{{.Path}}">[…more]</a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -33,6 +33,7 @@ import (
|
|||||||
"github.com/FooSoft/goldsmith-plugins/index"
|
"github.com/FooSoft/goldsmith-plugins/index"
|
||||||
"github.com/FooSoft/goldsmith-plugins/layout"
|
"github.com/FooSoft/goldsmith-plugins/layout"
|
||||||
"github.com/FooSoft/goldsmith-plugins/markdown"
|
"github.com/FooSoft/goldsmith-plugins/markdown"
|
||||||
|
"github.com/FooSoft/goldsmith-plugins/paginate"
|
||||||
"github.com/FooSoft/goldsmith-plugins/syntax"
|
"github.com/FooSoft/goldsmith-plugins/syntax"
|
||||||
"github.com/FooSoft/goldsmith-plugins/tags"
|
"github.com/FooSoft/goldsmith-plugins/tags"
|
||||||
"github.com/FooSoft/goldsmith-plugins/thumbnail"
|
"github.com/FooSoft/goldsmith-plugins/thumbnail"
|
||||||
@ -105,6 +106,7 @@ func (b *builder) Build(srcDir, dstDir string) {
|
|||||||
Chain(frontmatter.New()).
|
Chain(frontmatter.New()).
|
||||||
Chain(markdown.New().MarkdownFlags(markdownFlags)).
|
Chain(markdown.New().MarkdownFlags(markdownFlags)).
|
||||||
Chain(collection.New()).
|
Chain(collection.New()).
|
||||||
|
Chain(paginate.New("Groups.Blog").Limit(5)).
|
||||||
Chain(index.New(indexMeta)).
|
Chain(index.New(indexMeta)).
|
||||||
Chain(tags.New().IndexMeta(tagMeta)).
|
Chain(tags.New().IndexMeta(tagMeta)).
|
||||||
Chain(breadcrumbs.New()).
|
Chain(breadcrumbs.New()).
|
||||||
|
Loading…
Reference in New Issue
Block a user