mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
fix bug affecting frontmatter-only files
This commit is contained in:
parent
25e6c3c361
commit
02e2bec326
@ -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
Block a user