Create missing head.html partial on new theme generation
authoropenscript <1105080+openscript@users.noreply.github.com>
Mon, 25 Jun 2018 09:39:20 +0000 (11:39 +0200)
committerAnthony Fok <foka@debian.org>
Mon, 25 Jun 2018 18:06:45 +0000 (12:06 -0600)
commands/new_theme.go

index 10741e05612178a5bdcb7bf032dce07c35abe525..936f67e991eea08f61606c7c3c54cdd2a04fa2db 100644 (file)
@@ -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")