feat(seo): custom description for credits page

This commit is contained in:
Anhgelus Morhtuuzh 2024-11-12 12:51:17 +01:00
parent 0831926787
commit e59feeba35
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5

View file

@ -59,7 +59,13 @@ func main() {
g.Templates = append(g.Templates, "templates/base/*.gohtml")
g.NewTemplate("index", "/", cfg.Person.Name, "", "", &cfg).Handle()
g.NewTemplate("credits", "/credits", "Credits", "", "", &cfg).Handle()
g.NewTemplate("credits",
"/credits",
"Credits",
"",
"Credits of the "+cfg.Person.Name+"'s Now page",
&cfg).
Handle()
g.NotFoundHandler = func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/", http.StatusTemporaryRedirect)