build(golatt): upgrade to 0.2.0
This commit is contained in:
parent
a1c1eb9ded
commit
c6b6252270
4 changed files with 8 additions and 22 deletions
7
go.mod
7
go.mod
|
@ -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
2
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 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
19
main.go
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue