fix bug affecting frontmatter-only files
Former-commit-id: 02e2bec326eade4bdc4f7de6798c4bd186546c06
This commit is contained in:
parent
fee1047644
commit
651c0bc26c
|
@ -49,6 +49,7 @@ func GetEditor(r *http.Request, i *file.Info) (*Editor, error) {
|
||||||
goto Error
|
goto Error
|
||||||
}
|
}
|
||||||
i.Content = frontmatter.AppendRune(i.Content, e.FrontMatter.Rune)
|
i.Content = frontmatter.AppendRune(i.Content, e.FrontMatter.Rune)
|
||||||
|
hasRune = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if e.Class == "frontmatter-only" && hasRune {
|
if e.Class == "frontmatter-only" && hasRune {
|
||||||
|
|
Loading…
Reference in New Issue