build(golatt): upgrade to 0.2.0

This commit is contained in:
Anhgelus Morhtuuzh 2024-11-10 15:37:17 +01:00
parent a1c1eb9ded
commit c6b6252270
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
4 changed files with 8 additions and 22 deletions

7
go.mod
View file

@ -2,7 +2,6 @@ module now
go 1.23.2 go 1.23.2
require ( require github.com/anhgelus/golatt v0.2.0
github.com/anhgelus/golatt v0.1.0 // indirect
github.com/gorilla/mux v1.8.1 // indirect require github.com/gorilla/mux v1.8.1 // indirect
)

2
go.sum
View file

@ -1,4 +1,6 @@
github.com/anhgelus/golatt v0.1.0 h1:Lb6wCtbOmIE/p/wlDeFzuFuR++twPx+fHMNVDGhqjXk= 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.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 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=

19
main.go
View file

@ -55,23 +55,8 @@ func main() {
} }
g.Templates = append(g.Templates, "templates/base/*.gohtml") g.Templates = append(g.Templates, "templates/base/*.gohtml")
home := golatt.Template{ g.NewTemplate("index", "/", cfg.Person.Name, "", "", &cfg).Handle()
Golatt: g, g.NewTemplate("credits", "/credits", "Credits", "", "", &cfg).Handle()
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.StartServer(":80") g.StartServer(":80")
} }

View file

@ -37,6 +37,7 @@ a {
.credits { .credits {
display: flex; display: flex;
gap: 1rem; gap: 1rem;
font-size: 16px;
@media only screen and (max-width: $bp-little) { @media only screen and (max-width: $bp-little) {
gap: 0; gap: 0;
align-items: center; align-items: center;
@ -46,7 +47,6 @@ a {
margin-bottom: 2rem; margin-bottom: 2rem;
margin-top: 2rem; margin-top: 2rem;
} }
font-size: 16px;
& a { & a {
color: var(--text-color); color: var(--text-color);
} }