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
This commit is contained in:
Tatsushi Demachi authored and Anthony Fok committed 2015-12-01 10:01:21 -07:00
1 parent c5e68ba197
commit 6c8103144f
1 file changed
+1 -2
+1 -2
View File
@@ -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