From: spf13 Date: Sat, 14 Feb 2015 23:30:15 +0000 (-0500) Subject: Put back static theme conditional X-Git-Tag: v0.13~41 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d6f81c7346c126d0b321146cbd007a0d6e036019;p=brevno-suite%2Fhugo Put back static theme conditional --- diff --git a/commands/hugo.go b/commands/hugo.go index d789820f..747a4b40 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -258,9 +258,11 @@ func copyStatic() error { return nil } - // Copy Static to Destination - jww.INFO.Println("syncing from", themeDir, "to", publishDir) - utils.CheckErr(syncer.Sync(publishDir, themeDir), fmt.Sprintf("Error copying static files of theme to %s", publishDir)) + if themeDir != "" { + // Copy Static to Destination + jww.INFO.Println("syncing from", themeDir, "to", publishDir) + utils.CheckErr(syncer.Sync(publishDir, themeDir), fmt.Sprintf("Error copying static files of theme to %s", publishDir)) + } // Copy Static to Destination jww.INFO.Println("syncing from", staticDir, "to", publishDir)