summaryrefslogtreecommitdiffstats
path: root/commands/new.go
diff options
context:
space:
mode:
authorAlbert Nigmatzianov <albertnigma@gmail.com>2017-03-24 12:14:14 +0500
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-03-24 22:19:03 +0100
commit9f0b02b898853280254fbe859eecfabd63c4fefb (patch)
tree40ebb5f9aba347f190dd08f0f64ab504f8e3da4c /commands/new.go
parenta159feffb22f46edbad14495c9d0b0495cd21d39 (diff)
commands: Fix case of createpath in new.go
Diffstat (limited to 'commands/new.go')
-rw-r--r--commands/new.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/new.go b/commands/new.go
index 7bab13e97..e2472af0c 100644
--- a/commands/new.go
+++ b/commands/new.go
@@ -107,11 +107,11 @@ func NewContent(cmd *cobra.Command, args []string) error {
return newUserError("path needs to be provided")
}
- createpath := args[0]
+ createPath := args[0]
var kind string
- createpath, kind = newContentPathSection(createpath)
+ createPath, kind = newContentPathSection(createPath)
if contentType != "" {
kind = contentType
@@ -123,7 +123,7 @@ func NewContent(cmd *cobra.Command, args []string) error {
return newSystemError(err)
}
- return create.NewContent(s, kind, createpath)
+ return create.NewContent(s, kind, createPath)
}
func doNewSite(fs *hugofs.Fs, basepath string, force bool) error {