diff --git a/honk.go b/honk.go index cdbd74a..0eeb028 100644 --- a/honk.go +++ b/honk.go @@ -1258,6 +1258,7 @@ func serve() { "views/honkform.html", "views/honk.html", "views/account.html", + "views/about.html", "views/login.html", "views/header.html", ) @@ -1294,6 +1295,7 @@ func serve() { getters.HandleFunc("/style.css", servecss) getters.HandleFunc("/local.css", servecss) + getters.HandleFunc("/about", servehtml) getters.HandleFunc("/login", servehtml) posters.HandleFunc("/dologin", login.LoginFunc) getters.HandleFunc("/logout", login.LogoutFunc) diff --git a/views/about.html b/views/about.html new file mode 100644 index 0000000..1a3bd1b --- /dev/null +++ b/views/about.html @@ -0,0 +1,7 @@ +{{ template "header.html" . }} +
+
+

What is honk?

+

Honk is amazing! +

+
diff --git a/views/header.html b/views/header.html index 18ce358..a471496 100644 --- a/views/header.html +++ b/views/header.html @@ -20,6 +20,7 @@ zonkzone account {{ else }} +about {{ if .ShowRSS }} rss {{ end }}