mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
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:
parent
c5e68ba197
commit
6c8103144f
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue