diff --git a/main.go b/main.go index 12c5256..e114c35 100644 --- a/main.go +++ b/main.go @@ -93,6 +93,7 @@ func serveTemplate(name string) http.HandlerFunc { func setupRouter() *mux.Router { router := mux.NewRouter() router.PathPrefix(staticDirPrefix).Handler(http.StripPrefix(staticDirPrefix, gziphandler.GzipHandler(http.FileServer(http.Dir(staticDir))))) + router.Handle("/legal", serveTemplate("legal.html")) router.Handle("/blog", serveTemplate("blog.html")) router.Handle("/", serveTemplate("about.html")) router.NotFoundHandler = serveTemplate("notfound.html") diff --git a/template/end.html b/template/end.html index a283083..4636f0a 100644 --- a/template/end.html +++ b/template/end.html @@ -6,6 +6,9 @@

This page uses concrete for styling. Check it out!

+

+ Legal +

diff --git a/template/legal.html b/template/legal.html new file mode 100644 index 0000000..0a73b09 --- /dev/null +++ b/template/legal.html @@ -0,0 +1,14 @@ +{{template "head.html"}} +{{template "menu.html"}} + +
+

According to §5 TMG

+

+ Marvin Blum
+ Gerhard-Hauptmannstraße 3
+ 33378 Rheda-Wiedenbrück, Germany
+ marvin@marvinblum.de +

+
+ +{{template "end.html"}}