shithub: hugo

Download patch

ref: d6f81c7346c126d0b321146cbd007a0d6e036019
parent: d10e05f2e32283d245691bd54a9bb6a9a7067578
author: spf13 <[email protected]>
date: Sat Feb 14 13:30:15 EST 2015

Put back static theme conditional

--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -258,9 +258,11 @@
 		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)