kiln new: Create public directory

This commit is contained in:
adnano 2021-05-12 01:49:16 -04:00
parent 2d744d310e
commit 200153e486

View file

@ -143,6 +143,7 @@ func newSite(name string) {
os.Mkdir(path.Join(name, "templates"), 0755) os.Mkdir(path.Join(name, "templates"), 0755)
os.Mkdir(path.Join(name, "templates/_default"), 0755) os.Mkdir(path.Join(name, "templates/_default"), 0755)
os.Mkdir(path.Join(name, "static"), 0755) os.Mkdir(path.Join(name, "static"), 0755)
os.Mkdir(path.Join(name, "public"), 0755)
config, _ := builtin.ReadFile("config.toml") config, _ := builtin.ReadFile("config.toml")
os.WriteFile(path.Join(name, "config.toml"), config, 0644) os.WriteFile(path.Join(name, "config.toml"), config, 0644)