~srivathsan/blaze

3cab4362577ecbf7bc7d789c9c1127212042df06 — Srivathsan Murali 4 years ago 57222ad
templateFunc: paginate -> listPages

This is a more appropriate name for the function
1 files changed, 1 insertions(+), 1 deletions(-)

M builder/templates.go
M builder/templates.go => builder/templates.go +1 -1
@@ 34,7 34,7 @@ func getTemplateFuncs(config *config.BlazeConfig) template.FuncMap {
			}
			return string(partial)
		},
		"paginate": func(path string) []*Page {
		"listPages": func(path string) []*Page {
			fullpath := filepath.Join(config.ContentDir(), path)
			pages, err := GetPages(fullpath, config)
			if err != nil {