updates
This commit is contained in:
1 parent
0797fde4e3
commit
b81ec9ecdf
4 files changed
+57
-1
No files matched your search
@@ -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