grgr.me

latest commits to https://grgr.me/
Log | Files | Refs

commit deb25ec58f4b6f1b784566fe53c8245771cf3664
parent 41697f2ba8cb4a13a304b4ac5e8a76e50f692cb8
Author: corndog <cauchyn@firemail.cc>
Date:   Sat, 12 Nov 2016 23:09:40 -0800

Add basic navigation to footer if not in root.

Diffstat:
out/sits/index.html | 4++++
site.tmpl | 6++++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/out/sits/index.html b/out/sits/index.html @@ -44,6 +44,10 @@ any problems.</p> <hr> + + <a href="https://grgr.me/">root</a> + + <p> <a href="mailto:contact@grgr.me">contact@grgr.me</a><br> <a href="./PGP">PGP</a> &ndash; 8F9A 850E 9435 4903 0CB7 30F4 C466 E02A 4B21 3DB8 diff --git a/site.tmpl b/site.tmpl @@ -11,6 +11,12 @@ {{ define "footer" }} <hr> +{{ if not (.Is "index.html") }} + <a href="https://grgr.me/">root</a> + {{ if not (eq "../index.html" (.Rel "index.html")) }} + &ndash; <a href="../">up one level</a> + {{ end }} +{{ end }} <p> <a href="mailto:contact@grgr.me">contact@grgr.me</a><br> <a href="./PGP">PGP</a> &ndash; 8F9A 850E 9435 4903 0CB7 30F4 C466 E02A 4B21 3DB8