add an about page
Ted Unangst tedu@tedunangst.com
Sat, 08 Jun 2019 15:31:00 -0400
3 files changed,
10 insertions(+),
0 deletions(-)
M
honk.go
→
honk.go
@@ -1258,6 +1258,7 @@ "views/combos.html",
"views/honkform.html", "views/honk.html", "views/account.html", + "views/about.html", "views/login.html", "views/header.html", )@@ -1294,6 +1295,7 @@ getters.HandleFunc("/.well-known/webfinger", fingerlicker)
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)
A
views/about.html
@@ -0,0 +1,7 @@
+{{ template "header.html" . }} +<main> +<div class="info"> +<h3>What is honk?</h3> +<p>Honk is amazing! +</div> +</main>
M
views/header.html
→
views/header.html
@@ -20,6 +20,7 @@ <span><a href="/c">combos</a></span>
<span><a href="/zonkzone">zonkzone</a></span> <span><a href="/account">account</a></span> {{ else }} +<span><a href="/about">about</a></span> {{ if .ShowRSS }} <span><a href="/rss">rss</a></span> {{ end }}