Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropenscript <1105080+openscript@users.noreply.github.com>2018-06-25 12:39:20 +0300
committerAnthony Fok <foka@debian.org>2018-06-25 21:06:45 +0300
commitfd71fa89bd6c197402582c87b2b76d4b96d562bf (patch)
tree082c80c487e1a2ac524dc5e76407c1e8d20aa6c9 /commands
parentb5a3aa7082135d0a573f4fbb00f798e26b67b902 (diff)
Create missing head.html partial on new theme generation
Diffstat (limited to 'commands')
-rw-r--r--commands/new_theme.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/new_theme.go b/commands/new_theme.go
index 10741e056..936f67e99 100644
--- a/commands/new_theme.go
+++ b/commands/new_theme.go
@@ -97,6 +97,7 @@ func (n *newThemeCmd) newTheme(cmd *cobra.Command, args []string) error {
return err
}
+ touchFile(cfg.Fs.Source, createpath, "layouts", "partials", "head.html")
touchFile(cfg.Fs.Source, createpath, "layouts", "partials", "header.html")
touchFile(cfg.Fs.Source, createpath, "layouts", "partials", "footer.html")