summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/hugobuilder.go3
-rw-r--r--commands/new.go14
2 files changed, 8 insertions, 9 deletions
diff --git a/commands/hugobuilder.go b/commands/hugobuilder.go
index 778d85ca9..3b57ac5e9 100644
--- a/commands/hugobuilder.go
+++ b/commands/hugobuilder.go
@@ -972,6 +972,9 @@ func (c *hugoBuilder) handleEvents(watcher *watcher.Batcher,
lrl.Logf("force refresh")
livereload.ForceRefresh()
}
+ } else {
+ lrl.Logf("force refresh")
+ livereload.ForceRefresh()
}
if len(cssChanges) > 0 {
diff --git a/commands/new.go b/commands/new.go
index fdc1f65f2..81e1c65a4 100644
--- a/commands/new.go
+++ b/commands/new.go
@@ -76,10 +76,8 @@ Ensure you run this within the root directory of your site.`,
&simpleCommand{
name: "site",
use: "site [path]",
- short: "Create a new site (skeleton)",
- long: `Create a new site in the provided directory.
-The new site will have the correct structure, but no content or theme yet.
-Use ` + "`hugo new [contentPath]`" + ` to create new content.`,
+ short: "Create a new site",
+ long: `Create a new site at the specified path.`,
run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error {
if len(args) < 1 {
return newUserError("path needs to be provided")
@@ -124,11 +122,9 @@ Use ` + "`hugo new [contentPath]`" + ` to create new content.`,
&simpleCommand{
name: "theme",
use: "theme [name]",
- short: "Create a new theme (skeleton)",
- long: `Create a new theme (skeleton) called [name] in ./themes.
-New theme is a skeleton. Please add content to the touched files. Add your
-name to the copyright line in the license and adjust the theme.toml file
-according to your needs.`,
+ short: "Create a new theme",
+ long: `Create a new theme with the specified name in the ./themes directory.
+This generates a functional theme including template examples and sample content.`,
run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error {
if len(args) < 1 {
return newUserError("theme name needs to be provided")