You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
updates
This commit is contained in:
10
setup.go
10
setup.go
@@ -96,6 +96,14 @@ func ParseHugo(c *caddy.Controller, root string) (*Config, error) {
|
||||
Hugo: installer.GetPath(),
|
||||
}
|
||||
|
||||
stlsbytes, err := Asset("public/css/styles.css")
|
||||
|
||||
if err != nil {
|
||||
return conf, err
|
||||
}
|
||||
|
||||
conf.Styles = string(stlsbytes)
|
||||
|
||||
for c.Next() {
|
||||
args := c.RemainingArgs()
|
||||
|
||||
@@ -116,7 +124,7 @@ func ParseHugo(c *caddy.Controller, root string) (*Config, error) {
|
||||
if err != nil {
|
||||
return conf, err
|
||||
}
|
||||
conf.Styles = string(stylesheet)
|
||||
conf.Styles += string(stylesheet)
|
||||
case "admin":
|
||||
if !c.NextArg() {
|
||||
return nil, c.ArgErr()
|
||||
|
||||
Reference in New Issue
Block a user