mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-26 18:41:14 +00:00
parent
23ed087c4e
commit
019299b0b0
2 changed files with 10 additions and 10 deletions
|
@ -150,6 +150,7 @@ Use ` + "`hugo new [contentPath]`" + ` to create new content.`,
|
||||||
},
|
},
|
||||||
withc: func(cmd *cobra.Command, r *rootCommand) {
|
withc: func(cmd *cobra.Command, r *rootCommand) {
|
||||||
cmd.Flags().BoolVarP(&force, "force", "f", false, "init inside non-empty directory")
|
cmd.Flags().BoolVarP(&force, "force", "f", false, "init inside non-empty directory")
|
||||||
|
cmd.Flags().StringVar(&format, "format", "toml", "preferred file format (toml, yaml or json)")
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
&simpleCommand{
|
&simpleCommand{
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
hugo new site -h
|
hugo new site -h
|
||||||
stdout 'Create a new site in the provided directory'
|
stdout 'Create a new site in the provided directory'
|
||||||
|
hugo new site my-yaml-site --format yml
|
||||||
|
checkfile my-yaml-site/hugo.yml
|
||||||
hugo new site mysite -f
|
hugo new site mysite -f
|
||||||
stdout 'Congratulations! Your new Hugo site is created in'
|
stdout 'Congratulations! Your new Hugo site is created in'
|
||||||
cd mysite
|
cd mysite
|
||||||
|
@ -45,6 +47,3 @@ draft: true
|
||||||
---
|
---
|
||||||
|
|
||||||
Dummy content.
|
Dummy content.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue