This commit is contained in:
Henrique Dias committed 2016-06-21 16:39:53 +01:00
1 parent 0797fde4e3
commit b81ec9ecdf
4 files changed
+57 -1

No files matched your search

+9 -1
View File
@@ -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()