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:
parent
e167825499
commit
0891b2e0e0
1
main.go
1
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue