rewrite some frontmatter and editor-related stuff
This commit is contained in:
1 parent
e8eeb9260e
commit
15e46f99c7
5 files changed
+51
-37
No files matched your search
+1
-1
@@ -160,7 +160,7 @@ func (p Page) PrintAsHTML(w http.ResponseWriter, templates ...string) (int, erro
|
||||
return http.StatusOK, err
|
||||
}
|
||||
|
||||
// PrintAsJSON prints the current Page infromation in JSON
|
||||
// PrintAsJSON prints the current Page information in JSON
|
||||
func (p Page) PrintAsJSON(w http.ResponseWriter) (int, error) {
|
||||
marsh, err := json.MarshalIndent(p.Info.Data, "", " ")
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user