feat(seo): custom description for credits page
This commit is contained in:
parent
0831926787
commit
e59feeba35
1 changed files with 7 additions and 1 deletions
8
main.go
8
main.go
|
@ -59,7 +59,13 @@ func main() {
|
||||||
g.Templates = append(g.Templates, "templates/base/*.gohtml")
|
g.Templates = append(g.Templates, "templates/base/*.gohtml")
|
||||||
|
|
||||||
g.NewTemplate("index", "/", cfg.Person.Name, "", "", &cfg).Handle()
|
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) {
|
g.NotFoundHandler = func(w http.ResponseWriter, r *http.Request) {
|
||||||
http.Redirect(w, r, "/", http.StatusTemporaryRedirect)
|
http.Redirect(w, r, "/", http.StatusTemporaryRedirect)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue