diff --git a/src/routes/template.go b/src/routes/template.go index 01c4bca..5997e10 100644 --- a/src/routes/template.go +++ b/src/routes/template.go @@ -17,14 +17,14 @@ const ( ) // Define the common layout templates filenames -var layoutFiles = []string{ +var templateFiles = []string{ "#layout.html", "header.html", "footer.html", } // Initialize the common templates with full paths -var layout = utils.PrependDir(templatesDir, layoutFiles) +var layout = utils.PrependDir(templatesDir, templateFiles) func renderTemplate(w http.ResponseWriter, data PageData, view string) {