mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Add a 404.html file if a new theme is created
This commit is contained in:
@@ -155,6 +155,7 @@ func NewTheme(cmd *cobra.Command, args []string) {
|
|||||||
mkdir(createpath, "layouts", "partials")
|
mkdir(createpath, "layouts", "partials")
|
||||||
|
|
||||||
touchFile(createpath, "layouts", "index.html")
|
touchFile(createpath, "layouts", "index.html")
|
||||||
|
touchFile(createpath, "layouts", "404.html")
|
||||||
touchFile(createpath, "layouts", "_default", "list.html")
|
touchFile(createpath, "layouts", "_default", "list.html")
|
||||||
touchFile(createpath, "layouts", "_default", "single.html")
|
touchFile(createpath, "layouts", "_default", "single.html")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user