~srivathsan/blaze

450ff01790ecefc83c434aa1080281f35c35e942 — Srivathsan Murali 3 years ago daf9e25
make fullpath in paginate
1 files changed, 2 insertions(+), 1 deletions(-)

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