mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
commands: Fix case of createpath in new.go
This commit is contained in:
parent
a159feffb2
commit
9f0b02b898
1 changed files with 3 additions and 3 deletions
|
@ -107,11 +107,11 @@ func NewContent(cmd *cobra.Command, args []string) error {
|
||||||
return newUserError("path needs to be provided")
|
return newUserError("path needs to be provided")
|
||||||
}
|
}
|
||||||
|
|
||||||
createpath := args[0]
|
createPath := args[0]
|
||||||
|
|
||||||
var kind string
|
var kind string
|
||||||
|
|
||||||
createpath, kind = newContentPathSection(createpath)
|
createPath, kind = newContentPathSection(createPath)
|
||||||
|
|
||||||
if contentType != "" {
|
if contentType != "" {
|
||||||
kind = contentType
|
kind = contentType
|
||||||
|
@ -123,7 +123,7 @@ func NewContent(cmd *cobra.Command, args []string) error {
|
||||||
return newSystemError(err)
|
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 {
|
func doNewSite(fs *hugofs.Fs, basepath string, force bool) error {
|
||||||
|
|
Loading…
Reference in a new issue