1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-12-04 19:08:22 +01:00

kiln new: Create public directory

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

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