Put back static theme conditional - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit d6f81c7346c126d0b321146cbd007a0d6e036019
DIR parent d10e05f2e32283d245691bd54a9bb6a9a7067578
HTML Author: spf13 <steve.francia@gmail.com>
Date: Sat, 14 Feb 2015 18:30:15 -0500
Put back static theme conditional
Diffstat:
M commands/hugo.go | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
DIR 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)