aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/new_theme.go
diff options
context:
space:
mode:
authoropenscript <[email protected]>2018-06-25 11:39:20 +0200
committerAnthony Fok <[email protected]>2018-06-25 12:06:45 -0600
commitfd71fa89bd6c197402582c87b2b76d4b96d562bf (patch)
tree082c80c487e1a2ac524dc5e76407c1e8d20aa6c9 /commands/new_theme.go
parentb5a3aa7082135d0a573f4fbb00f798e26b67b902 (diff)
downloadhugo-fd71fa89bd6c197402582c87b2b76d4b96d562bf.tar.gz
hugo-fd71fa89bd6c197402582c87b2b76d4b96d562bf.zip
Create missing head.html partial on new theme generation
Diffstat (limited to 'commands/new_theme.go')
-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")