mirror of
https://github.com/Kugelschieber/marvinblum.git
synced 2026-01-18 06:40:27 +00:00
Added legal page.
This commit is contained in:
1
main.go
1
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")
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
<p>
|
||||
This page uses <a href="https://concrete.style/" target="_blank">concrete</a> for styling. Check it out!
|
||||
</p>
|
||||
<p>
|
||||
<a href="/legal">Legal</a>
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
14
template/legal.html
Normal file
14
template/legal.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{template "head.html"}}
|
||||
{{template "menu.html"}}
|
||||
|
||||
<section>
|
||||
<h2>According to §5 TMG</h2>
|
||||
<p>
|
||||
Marvin Blum<br />
|
||||
Gerhard-Hauptmannstraße 3<br />
|
||||
33378 Rheda-Wiedenbrück, Germany<br />
|
||||
<a href="mailto:marvin@marvinblum.de">marvin@marvinblum.de</a>
|
||||
</p>
|
||||
</section>
|
||||
|
||||
{{template "end.html"}}
|
||||
Reference in New Issue
Block a user