all repos — honk @ e2d4acc04beacb477e2c779cf6ceda2ddb778c3c

my fork of honk

add an about page
Ted Unangst tedu@tedunangst.com
Sat, 08 Jun 2019 15:31:00 -0400
commit

e2d4acc04beacb477e2c779cf6ceda2ddb778c3c

parent

acdf82a0969d07a146d224936811d4117ea8218d

3 files changed, 10 insertions(+), 0 deletions(-)

jump to
M honk.gohonk.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.htmlviews/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 }}