mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-04 21:40:56 +00: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()
|
themeDir, err := helpers.GetThemeStaticDirPath()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
jww.ERROR.Println(err)
|
jww.WARN.Println(err)
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy the theme's static directory
|
// Copy the theme's static directory
|
||||||
|
|
Loading…
Reference in a new issue