git-preview @ main

static git web frontend but with images and html previews + code truncation

templates: fix 404 and 500
Mon, 12 Dec 2022
4 files changed, 14 insertions(+), 4 deletions(-)
M templates/404.html

@@ -1,7 +1,9 @@

+{{ define "404" }} <html> <title>404</title> -{{ template "header" . }} +{{ template "head" . }} <body> 404 &mdash; nothing like that here </body> </html> +{{ end }}
M templates/500.html

@@ -1,3 +1,4 @@

+{{ define "500" }} <html> <title>500</title> {{ template "header" . }}

@@ -5,3 +6,4 @@ <body>

500 &mdash; something broke! </body> </html> +{{ end }}
M templates/nav.html

@@ -1,9 +1,10 @@

{{ define "nav" }} <nav> <ul> - <li>some - <li>thing - <li>here + <li><a href="/">all repos</a> + <li><a href="/{{ .name }}">{{ .name }}</a> + <li><a href="/{{ .name }}/tree/{{ .ref }}/">tree</a> + <li><a href="/{{ .name }}/log/{{ .ref }}">log</a>

… preview truncated

… and 1 more changed files not shown in this preview