make it cleaner and easier

This commit is contained in:
2025-09-23 19:06:26 +03:00
parent 050ff9060e
commit 13f38313ac
3 changed files with 1 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ func pageHandler(w http.ResponseWriter, r *http.Request) {
filepath.Join("templates/layout.html"),
filepath.Join("templates/header.html"),
filepath.Join("templates/footer.html"),
filepath.Join("templates/"+path+".html"),
filepath.Join("pages/"+path+".html"),
)
if err != nil {
http.NotFound(w, r)