This commit is contained in:
Henrique Dias
2015-09-19 22:17:38 +01:00
parent 537fe27f2e
commit 3c0383d500
13 changed files with 249 additions and 294 deletions

View File

@@ -110,7 +110,7 @@ func post(w http.ResponseWriter, r *http.Request, filename string) (int, error)
mainContent = "\n\n" + strings.TrimSpace(mainContent)
file = []byte(mainContent)
case "full":
case "complete":
// The main content of the file
mainContent := rawFile["content"].(string)
mainContent = "\n\n" + strings.TrimSpace(mainContent)
@@ -195,7 +195,7 @@ func get(w http.ResponseWriter, r *http.Request, filename string) (int, error) {
// Parses the page content and the frontmatter
page.Content = strings.TrimSpace(string(file.Content()))
page.FrontMatter, err = frontmatter.Pretty(file.FrontMatter())
page.Class = "full"
page.Class = "complete"
} else {
// The editor will handle only content
page.Class = "content-only"