mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
kiln new: Create public directory
This commit is contained in:
parent
2d744d310e
commit
200153e486
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 a new issue