Page render html takes only the neccessary arguments

This commit is contained in:
Henrique Dias
2017-06-27 09:40:33 +01:00
parent 2df4efc369
commit 3b3643be05
3 changed files with 6 additions and 5 deletions

View File

@@ -125,10 +125,10 @@ func serveSingle(w http.ResponseWriter, r *http.Request, c *FileManager, u *User
return http.StatusInternalServerError, err
}
return p.PrintAsHTML(w, c, "frontmatter", "editor")
return p.PrintAsHTML(w, c.assets.templates, "frontmatter", "editor")
}
return p.PrintAsHTML(w, c, "single")
return p.PrintAsHTML(w, c.assets.templates, "single")
}
func editorClass(mode string) string {