From d6f81c7346c126d0b321146cbd007a0d6e036019 Mon Sep 17 00:00:00 2001 From: spf13 Date: Sat, 14 Feb 2015 18:30:15 -0500 Subject: [PATCH] Put back static theme conditional --- commands/hugo.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/hugo.go b/commands/hugo.go index d789820f6..747a4b40e 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)