From 2ec3873e83a657170ab06cd657d9498626f75967 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Sat, 4 Dec 2021 23:46:13 +0000 Subject: [PATCH] Revert order of template and actual page --- http/templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/templates.go b/http/templates.go index 2d03b07..193d3e6 100644 --- a/http/templates.go +++ b/http/templates.go @@ -24,7 +24,7 @@ func NewTemplates(funcMap template.FuncMap) (*Templates, error) { } pages, err := fs.Glob(web.Templates, "*.html") for _, page := range pages { - allTemplates := append([]string{page}, templates...) + allTemplates := append(templates, page) tpl, err := template.New(page).Funcs(funcMap).ParseFS(web.Templates, allTemplates...) fmt.Printf("page: %s, templates: %v\n", page, templates) if err != nil {