mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 14:16:06 +00:00
Add a 404.html file if a new theme is created
This commit is contained in:
1 parent
d6f6945525
commit
fd7b315572
1 file changed
+1
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user