From: Tatsushi Demachi Date: Tue, 1 Dec 2015 14:53:27 +0000 (+0900) Subject: Copy static dir files without theme's static dir X-Git-Tag: v0.16~562 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6c8103144fc7b65251d2ba26eb23630bc96807f0;p=brevno-suite%2Fhugo Copy static dir files without theme's static dir Hugo command doesn't copy site's "static" directory files to "public" directory if a specified theme doesn't have "static" directory because theme's "static" directory checking always returns an error. This fixes it by just showing a warning message about theme's "static" directory absence and not skipping following processes. Fix #1655 --- diff --git a/commands/hugo.go b/commands/hugo.go index b89f9946..c275fccc 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -369,8 +369,7 @@ func copyStatic() error { themeDir, err := helpers.GetThemeStaticDirPath() if err != nil { - jww.ERROR.Println(err) - return nil + jww.WARN.Println(err) } // Copy the theme's static directory