From 6de9ed4069fcc2c8b3641422bbba046a5ef438bd Mon Sep 17 00:00:00 2001 From: samantha42 Date: Thu, 10 Sep 2026 12:38:57 +0200 Subject: [PATCH] personal page --- main.go | 28 ++-------------------------- source/pages/bookkeeping.html | 2 +- source/pages/index.html | 4 ++-- source/pages/interests.html | 9 +++++++++ source/pages/research.html | 7 +++++-- source/templates/main.html | 1 + 6 files changed, 20 insertions(+), 31 deletions(-) diff --git a/main.go b/main.go index 44abea7..5d1544b 100644 --- a/main.go +++ b/main.go @@ -105,31 +105,7 @@ func main() { } }) - mux.HandleFunc("GET /automation", func(w http.ResponseWriter, r *http.Request) { - tmpl, err := template.ParseFS(staticRoot, "templates/main.html", "pages/automation.html") - if err != nil { - log.Println("parse error:", err) - http.Error(w, err.Error(), http.StatusInternalServerError) - return - } - - data := struct { - Title string - Sub bool - }{ - Title: "automation", - Sub: true, - } - - w.Header().Set("Content-Type", "text/html; charset=utf-8") - // execute the base file by name — main.html is the entrypoint - if err := tmpl.ExecuteTemplate(w, "main.html", data); err != nil { - log.Println("execute error:", err) - http.Error(w, err.Error(), http.StatusInternalServerError) - } - }) - - mux.HandleFunc("GET /interests", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("GET /personal", func(w http.ResponseWriter, r *http.Request) { tmpl, err := template.ParseFS(staticRoot, "templates/main.html", "pages/interests.html") if err != nil { log.Println("parse error:", err) @@ -141,7 +117,7 @@ func main() { Title string Sub bool }{ - Title: "interests", + Title: "personal", Sub: true, } diff --git a/source/pages/bookkeeping.html b/source/pages/bookkeeping.html index 654a133..8bc210b 100644 --- a/source/pages/bookkeeping.html +++ b/source/pages/bookkeeping.html @@ -27,7 +27,7 @@ {{define "body"}}
-

bookkeeping · 2026

+

Bookkeeping · 2026

Administration
infrastructure

diff --git a/source/pages/index.html b/source/pages/index.html index 2daccf7..f519171 100644 --- a/source/pages/index.html +++ b/source/pages/index.html @@ -14,7 +14,7 @@

@@ -128,7 +128,7 @@

interests

-