mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-21 10:38:28 +00:00
fix bug affecting frontmatter-only files
This commit is contained in:
parent
25e6c3c361
commit
02e2bec326
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue