From 1a5a86a5d4557200db20e20206bcdd7b9b2a7e55 Mon Sep 17 00:00:00 2001 From: hovertank3d Date: Sat, 18 Jan 2025 23:27:52 +0100 Subject: refactor and add /about --- about.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 about.go (limited to 'about.go') diff --git a/about.go b/about.go new file mode 100644 index 0000000..e005d55 --- /dev/null +++ b/about.go @@ -0,0 +1,24 @@ +// i made this site to serve some of my future demos and fuuny +// projects. currently there are only couple of interesting things i wrote: + +// * {{ template "link.html" (arr "46load" "https://github.com/hovertank3d/46load")}}, +// * {{ template "link.html" (arr "fire" "https://github.com/hovertank3d/fire")}}, +// * {{ template "link.html" (arr "bfc" "https://github.com/hovertank3d/bfc")}}, +// * {{ template "link.html" (arr "enigma16" "https://github.com/hovertank3d/enigma16")}}, + +// so, come back when i'll write something + +// also, this site uses {{ template "link.html" (arr "genhl" "https://github.com/hovertank3d/genhl")}} to go:generate syntax highlight + +package lzcnt + +import "net/http" + +func (s *Server) aboutPage(w http.ResponseWriter, r *http.Request) { + payload := map[string]any{ + "Page": "about.go.html", + "Title": "About", + } + + tmpl.ExecuteTemplate(w, "index.html", payload) +} -- cgit v1.2.3