Made minor changes; added 404

This commit is contained in:
Patrick Hatsune 2024-07-26 06:04:55 -07:00
parent ff55c2d888
commit bbe48faab0
Signed by: keyemail
GPG key ID: 6FD1A0FDB0D914C2
2 changed files with 8 additions and 2 deletions

View file

@ -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)
}

View file

@ -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;