mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
7f698c8934
commit
793e38f5ce
2 changed files with 7 additions and 6 deletions
|
@ -155,11 +155,12 @@ Use ` + "`hugo new [contentPath]`" + ` to create new content.`,
|
||||||
},
|
},
|
||||||
&simpleCommand{
|
&simpleCommand{
|
||||||
name: "theme",
|
name: "theme",
|
||||||
use: "theme [path]",
|
use: "theme [name]",
|
||||||
short: "Create a new site (skeleton)",
|
short: "Create a new theme (skeleton)",
|
||||||
long: `Create a new site in the provided directory.
|
long: `Create a new theme (skeleton) called [name] in ./themes.
|
||||||
The new site will have the correct structure, but no content or theme yet.
|
New theme is a skeleton. Please add content to the touched files. Add your
|
||||||
Use ` + "`hugo new [contentPath]`" + ` to create new content.`,
|
name to the copyright line in the license and adjust the theme.toml file
|
||||||
|
according to your needs.`,
|
||||||
run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error {
|
run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error {
|
||||||
h, err := r.Hugo(flagsToCfg(cd, nil))
|
h, err := r.Hugo(flagsToCfg(cd, nil))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -10,7 +10,7 @@ cd mysite
|
||||||
checkfile hugo.toml
|
checkfile hugo.toml
|
||||||
|
|
||||||
hugo new theme -h
|
hugo new theme -h
|
||||||
stdout 'Create a new site in the provided directory'
|
stdout 'Create a new theme \(skeleton\) called \[name\] in ./themes'
|
||||||
hugo new theme mytheme
|
hugo new theme mytheme
|
||||||
stdout 'Creating theme'
|
stdout 'Creating theme'
|
||||||
cd themes
|
cd themes
|
||||||
|
|
Loading…
Reference in a new issue