commit b4c58e98c3e2d6603e2ad3566d0c8c6a91fdbdc8 parent 27d19c05cbc445e80c225331116d8587bd37dc7b Author: corndog <cauchyn@firemail.cc> Date: Mon, 14 Nov 2016 14:34:16 -0800 Make links in footer relative Diffstat:
| out/sits/index.html | | | 4 | ++-- |
| site.tmpl | | | 4 | ++-- |
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/out/sits/index.html b/out/sits/index.html @@ -45,12 +45,12 @@ any problems.</p> <hr> - <a href="https://grgr.me/">root</a> + <a href="../index.html">root</a> <p> <a href="mailto:contact@grgr.me">contact@grgr.me</a><br> -<a href="./PGP">PGP</a> – 8F9A 850E 9435 4903 0CB7 30F4 C466 E02A 4B21 3DB8 +<a href="../PGP">PGP</a> – 8F9A 850E 9435 4903 0CB7 30F4 C466 E02A 4B21 3DB8 </p> </body> </html> diff --git a/site.tmpl b/site.tmpl @@ -12,14 +12,14 @@ {{ define "footer" }} <hr> {{ if not (.Is "index.html") }} - <a href="https://grgr.me/">root</a> + <a href="{{ .Rel "/"}}">root</a> {{ if not (eq "../index.html" (.Rel "index.html")) }} – <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> – 8F9A 850E 9435 4903 0CB7 30F4 C466 E02A 4B21 3DB8 +<a href="{{.Rel "/PGP"}}">PGP</a> – 8F9A 850E 9435 4903 0CB7 30F4 C466 E02A 4B21 3DB8 </p> </body> </html>