diff options
author | openscript <[email protected]> | 2018-06-25 11:39:20 +0200 |
---|---|---|
committer | Anthony Fok <[email protected]> | 2018-06-25 12:06:45 -0600 |
commit | fd71fa89bd6c197402582c87b2b76d4b96d562bf (patch) | |
tree | 082c80c487e1a2ac524dc5e76407c1e8d20aa6c9 /commands/new_theme.go | |
parent | b5a3aa7082135d0a573f4fbb00f798e26b67b902 (diff) | |
download | hugo-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.go | 1 |
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") |