diff options
Diffstat (limited to 'commands/new.go')
-rw-r--r-- | commands/new.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/new.go b/commands/new.go index a30c9f55b..8c2e4850f 100644 --- a/commands/new.go +++ b/commands/new.go @@ -176,8 +176,8 @@ func NewTheme(cmd *cobra.Command, args []string) error { return newUserError("theme name needs to be provided") } - createpath := helpers.AbsPathify(filepath.Join("themes", args[0])) - jww.INFO.Println("Creating theme at", createpath) + createpath := helpers.AbsPathify(filepath.Join(viper.GetString("themesDir"), args[0])) + jww.INFO.Println("creating theme at", createpath) if x, _ := helpers.Exists(createpath, hugofs.SourceFs); x { return newUserError(createpath, "already exists") |