hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit d6f81c7346c126d0b321146cbd007a0d6e036019
parent d10e05f2e32283d245691bd54a9bb6a9a7067578
Author: spf13 <steve.francia@gmail.com>
Date:   Sat, 14 Feb 2015 18:30:15 -0500

Put back static theme conditional

Diffstat:
Mcommands/hugo.go | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git 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)