1
0
Fork 0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-04-26 11:35:01 +02:00

kiln new: Create public directory

This commit is contained in:
Adnan Maolood 2021-05-12 01:49:16 -04:00
parent e167825499
commit 0891b2e0e0

View File

@ -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)