Add a 404.html file if a new theme is created - 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 fd7b315572bbb4fddc7d6c3c9e3fe92c3ac15439
DIR parent d6f694552512f67dc7bc55afd660de017641fb58
HTML Author: digitalcraftsman <digitalcraftsman@users.noreply.github.com>
Date: Fri, 4 Sep 2015 13:43:09 +0200
Add a 404.html file if a new theme is created
Diffstat:
M commands/new.go | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
DIR diff --git a/commands/new.go b/commands/new.go
@@ -155,6 +155,7 @@ func NewTheme(cmd *cobra.Command, args []string) {
mkdir(createpath, "layouts", "partials")
touchFile(createpath, "layouts", "index.html")
+ touchFile(createpath, "layouts", "404.html")
touchFile(createpath, "layouts", "_default", "list.html")
touchFile(createpath, "layouts", "_default", "single.html")