Forgot that pages don't use the inline html anymore. Fixed parsing of the base template
parent
1c88b1f138
commit
d6fe1544e0
3
main.go
3
main.go
|
|
@ -356,8 +356,9 @@ func main() {
|
|||
log.Fatal("Error getting working directory:", err)
|
||||
}
|
||||
|
||||
// Parse partial templates
|
||||
// Parse base and partial templates
|
||||
tmpl := template.Must(template.ParseFiles(
|
||||
filepath.Join(dir, "templates/base.html"),
|
||||
filepath.Join(dir, "templates/partials/navbar.html"),
|
||||
filepath.Join(dir, "templates/partials/cookie_banner.html"),
|
||||
))
|
||||
|
|
|
|||
Loading…
Reference in New Issue