From d25a1ec1f3d013cd093964b1eb952f0b25a09dc5 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sat, 6 Sep 2025 10:54:40 -0400 Subject: [PATCH] Move to lcthw.dev --- go.mod | 2 +- main.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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);