From 83a7fc5cf8eda929eef75305ec8435ecd228d2f4 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 14 Nov 2024 14:48:13 +0100 Subject: feat(legal): merge legal and credits page --- main.go | 8 ++++---- templates/base/base.gohtml | 2 +- templates/page/credits.gohtml | 16 ---------------- templates/page/index.gohtml | 8 -------- templates/page/legal.gohtml | 19 +++++++++++++++++++ 5 files changed, 24 insertions(+), 29 deletions(-) delete mode 100644 templates/page/credits.gohtml create mode 100644 templates/page/legal.gohtml 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/credits.gohtml b/templates/page/credits.gohtml deleted file mode 100644 index 2d82734..0000000 --- a/templates/page/credits.gohtml +++ /dev/null @@ -1,16 +0,0 @@ -{{define "body"}} - -{{end}} \ No newline at end of file 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/legal.gohtml b/templates/page/legal.gohtml new file mode 100644 index 0000000..2769431 --- /dev/null +++ b/templates/page/legal.gohtml @@ -0,0 +1,19 @@ +{{define "body"}} + +{{end}} \ No newline at end of file -- cgit v1.2.3