From 869d974f7173c5422cdcd63054f744ea40756d8b Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Sat, 14 Jun 2025 17:39:04 +0200 Subject: [PATCH] =?UTF-8?q?config:=20rename=20files=20to=20better=20hint?= =?UTF-8?q?=20at=20what=20they=E2=80=99re=20used=20for?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/{about.template => about_page.htmlbody.sample} | 0 config/{config-skeleton.json => config.json.sample} | 0 handlers/about.go | 6 +++--- 3 files changed, 3 insertions(+), 3 deletions(-) rename config/{about.template => about_page.htmlbody.sample} (100%) rename config/{config-skeleton.json => config.json.sample} (100%) diff --git a/config/about.template b/config/about_page.htmlbody.sample similarity index 100% rename from config/about.template rename to config/about_page.htmlbody.sample diff --git a/config/config-skeleton.json b/config/config.json.sample similarity index 100% rename from config/config-skeleton.json rename to config/config.json.sample diff --git a/handlers/about.go b/handlers/about.go index 856761b..47df6f6 100644 --- a/handlers/about.go +++ b/handlers/about.go @@ -14,9 +14,9 @@ func AboutHandler(app *App) http.HandlerFunc { loggedIn := session.Values["user_id"] != nil cookie, _ := r.Cookie("threadr_cookie_banner") - aboutContent, err := ioutil.ReadFile("config/about.template") + aboutContent, err := ioutil.ReadFile("config/about_page.htmlbody") if err != nil { - log.Printf("Error reading about.template: %v", err) + log.Printf("Error reading about_page.htmlbody: %v", err) http.Error(w, "Internal Server Error", http.StatusInternalServerError) return } @@ -43,4 +43,4 @@ func AboutHandler(app *App) http.HandlerFunc { return } } -} \ No newline at end of file +}