fix bug affecting frontmatter-only files

This commit is contained in:
Henrique Dias 2017-02-04 11:25:22 +00:00
parent 25e6c3c361
commit 02e2bec326

View File

@ -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 {