Made minor changes; added 404
This commit is contained in:
parent
ff55c2d888
commit
bbe48faab0
5
main.go
5
main.go
|
@ -189,6 +189,11 @@ func galleryHandler(w http.ResponseWriter, req *http.Request) {
|
|||
}
|
||||
|
||||
func indexHandler(w http.ResponseWriter, req *http.Request) {
|
||||
if req.URL.Path != "/" {
|
||||
renderTemplate(w, "404", data, true)
|
||||
return
|
||||
}
|
||||
|
||||
renderTemplate(w, "home", data, true)
|
||||
}
|
||||
|
||||
|
|
|
@ -19,12 +19,13 @@
|
|||
grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
|
||||
gap: 40px;
|
||||
margin-top: 30px;
|
||||
width: 100%;
|
||||
justify-items: center;
|
||||
|
||||
li {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
|
||||
gap: 10px;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
|
|
Loading…
Reference in a new issue