mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
Use content, public, and layouts directories
Use content, public, and layouts instead of src, dst, and templates.
This commit is contained in:
parent
7ee6591e9c
commit
e3a479f921
6
main.go
6
main.go
|
@ -36,13 +36,13 @@ func run() error {
|
|||
if err := cfg.Load("config.ini"); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := cfg.LoadTemplates("templates"); err != nil {
|
||||
if err := cfg.LoadTemplates("layouts"); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Load content
|
||||
dir := NewDir("")
|
||||
if err := dir.read("src", ""); err != nil {
|
||||
if err := dir.read("content", ""); err != nil {
|
||||
return err
|
||||
}
|
||||
dir.sort()
|
||||
|
@ -51,7 +51,7 @@ func run() error {
|
|||
return err
|
||||
}
|
||||
// Write content
|
||||
if err := dir.write("dst", output, cfg); err != nil {
|
||||
if err := dir.write("public", output, cfg); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue