diff --git a/go.mod b/go.mod index cb5bfce..4e9d28f 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,6 @@ module now go 1.23.2 -require ( - github.com/anhgelus/golatt v0.1.0 // indirect - github.com/gorilla/mux v1.8.1 // indirect -) +require github.com/anhgelus/golatt v0.2.0 + +require github.com/gorilla/mux v1.8.1 // indirect diff --git a/go.sum b/go.sum index 8ca01bf..299575c 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,6 @@ github.com/anhgelus/golatt v0.1.0 h1:Lb6wCtbOmIE/p/wlDeFzuFuR++twPx+fHMNVDGhqjXk= github.com/anhgelus/golatt v0.1.0/go.mod h1:Lgyy/Tm9A3w1ft72mZOUxl/p+4G2/WB3qxoXTv7Y4y8= +github.com/anhgelus/golatt v0.2.0 h1:tdgrx3K61mVYBMy9CNhTheSIV8lPWBl/JjeDIHmz9eg= +github.com/anhgelus/golatt v0.2.0/go.mod h1:Lgyy/Tm9A3w1ft72mZOUxl/p+4G2/WB3qxoXTv7Y4y8= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= diff --git a/main.go b/main.go index 4bb9d8a..11701be 100644 --- a/main.go +++ b/main.go @@ -55,23 +55,8 @@ func main() { } g.Templates = append(g.Templates, "templates/base/*.gohtml") - home := golatt.Template{ - Golatt: g, - Name: "index", - Title: cfg.Person.Name, - Data: &cfg, - URL: "/", - } - credits := golatt.Template{ - Golatt: g, - Name: "credits", - Title: "Credits", - Data: &cfg, - URL: "/credits", - } - - g.HandleFunc("/", home.Handle()) - g.HandleFunc("/credits", credits.Handle()) + g.NewTemplate("index", "/", cfg.Person.Name, "", "", &cfg).Handle() + g.NewTemplate("credits", "/credits", "Credits", "", "", &cfg).Handle() g.StartServer(":80") } diff --git a/scss/main.scss b/scss/main.scss index 20147e5..77c1b3f 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -37,6 +37,7 @@ a { .credits { display: flex; gap: 1rem; + font-size: 16px; @media only screen and (max-width: $bp-little) { gap: 0; align-items: center; @@ -46,7 +47,6 @@ a { margin-bottom: 2rem; margin-top: 2rem; } - font-size: 16px; & a { color: var(--text-color); }