From e3a479f921291e86715a474afe9445e44bf74d1f Mon Sep 17 00:00:00 2001 From: adnano Date: Sat, 27 Feb 2021 21:39:13 -0500 Subject: [PATCH] Use content, public, and layouts directories Use content, public, and layouts instead of src, dst, and templates. --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 116eddb..74a89dc 100644 --- a/main.go +++ b/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