Create missing head.html partial on new theme generation - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit fd71fa89bd6c197402582c87b2b76d4b96d562bf
DIR parent b5a3aa7082135d0a573f4fbb00f798e26b67b902
HTML Author: openscript <1105080+openscript@users.noreply.github.com>
Date: Mon, 25 Jun 2018 11:39:20 +0200
Create missing head.html partial on new theme generation
Diffstat:
M commands/new_theme.go | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
DIR diff --git 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")