From 02e2bec326eade4bdc4f7de6798c4bd186546c06 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 4 Feb 2017 11:25:22 +0000 Subject: [PATCH] fix bug affecting frontmatter-only files --- handlers/editor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers/editor.go b/handlers/editor.go index 7f2609aa..8440734b 100644 --- a/handlers/editor.go +++ b/handlers/editor.go @@ -49,6 +49,7 @@ func GetEditor(r *http.Request, i *file.Info) (*Editor, error) { goto Error } i.Content = frontmatter.AppendRune(i.Content, e.FrontMatter.Rune) + hasRune = true } if e.Class == "frontmatter-only" && hasRune {