diff --git a/go.mod b/go.mod index 41872d6..6e8ee12 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.learnjsthehardway.com/learn-code-the-hard-way/ssgod +module lcthw.dev/learn-code-the-hard-way/ssgod go 1.24.2 diff --git a/main.go b/main.go index 61f395b..701f3dc 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ import ( "flag" "time" "text/template" - "git.learnjsthehardway.com/learn-code-the-hard-way/ssgod/config" + "lcthw.dev/learn-code-the-hard-way/ssgod/config" "github.com/yuin/goldmark" "github.com/fsnotify/fsnotify" ) @@ -277,6 +277,7 @@ func InitConfig(config_file string) { out, err := os.OpenFile(config_file, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644) if err != nil { log.Fatalf("error opening %s", config_file) } defer out.Close() + out.WriteString(DEFAULT_CONFIG) } else { log.Fatalf("there's already a %s file here", config_file);