diff --git a/pkg/render/render.go b/pkg/render/render.go index bd0a925..9212e06 100644 --- a/pkg/render/render.go +++ b/pkg/render/render.go @@ -8,7 +8,7 @@ import ( // renderTemplate renders a HTML template file func RenderTemplate(w http.ResponseWriter, tmpl string) { - parsedTemplate, _ := template.ParseFiles("./templates/" + tmpl) + parsedTemplate, _ := template.ParseFiles("./templates/"+tmpl, "./templates/base.layout.tmpl") err := parsedTemplate.Execute(w, nil) if err != nil { fmt.Println("error parsing template:", err) diff --git a/templates/about.page.tmpl b/templates/about.page.tmpl index b8c05cc..4c0281b 100644 --- a/templates/about.page.tmpl +++ b/templates/about.page.tmpl @@ -1,24 +1,11 @@ - - - -
- - -This is the content
-This is the content
This is the content
-This is the content