Use content, public, and layouts directories

Use content, public, and layouts instead of src, dst, and templates.
This commit is contained in:
adnano 2021-02-27 21:39:13 -05:00
parent 7ee6591e9c
commit e3a479f921

View file

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