diff --git a/main.go b/main.go index d26dbae..57ef485 100644 --- a/main.go +++ b/main.go @@ -59,11 +59,11 @@ func main() { g.Templates = append(g.Templates, "templates/base/*.gohtml") g.NewTemplate("index", "/", cfg.Person.Name, "", "", &cfg).Handle() - g.NewTemplate("credits", - "/credits", - "Credits", + g.NewTemplate("legal", + "/legal", + "Legal things", "", - "Credits of "+cfg.Person.Name+"'s Now page", + "Legal information about "+cfg.Person.Name+"'s Now page", &cfg). Handle() g.NewTemplate("tags", diff --git a/templates/base/base.gohtml b/templates/base/base.gohtml index 9d97934..70b32af 100644 --- a/templates/base/base.gohtml +++ b/templates/base/base.gohtml @@ -14,7 +14,7 @@ {{template "body" .Data}} diff --git a/templates/page/index.gohtml b/templates/page/index.gohtml index b5f964f..dee6782 100644 --- a/templates/page/index.gohtml +++ b/templates/page/index.gohtml @@ -18,17 +18,9 @@ {{ .Content }} {{ end }} - - {{end}} \ No newline at end of file diff --git a/templates/page/credits.gohtml b/templates/page/legal.gohtml similarity index 78% rename from templates/page/credits.gohtml rename to templates/page/legal.gohtml index 2d82734..2769431 100644 --- a/templates/page/credits.gohtml +++ b/templates/page/legal.gohtml @@ -1,6 +1,9 @@ {{define "body"}}