templates: fix 404 and 500
Anirudh Oppiliappan x@icyphox.sh
Mon, 12 Dec 2022 20:53:44 +0530
4 files changed,
14 insertions(+),
4 deletions(-)
M
templates/404.html
→
templates/404.html
@@ -1,7 +1,9 @@
+{{ define "404" }} <html> <title>404</title> -{{ template "header" . }} +{{ template "head" . }} <body> 404 — nothing like that here </body> </html> +{{ end }}
M
templates/500.html
→
templates/500.html
@@ -1,3 +1,4 @@
+{{ define "500" }} <html> <title>500</title> {{ template "header" . }}@@ -5,3 +6,4 @@ <body>
500 — something broke! </body> </html> +{{ end }}
M
templates/repo.html
→
templates/repo.html
@@ -44,6 +44,11 @@ </tr>
{{ end }} {{ end }} </table> + <article> + <pre> + {{- if .readme }}{{ .readme }}{{- end -}} + </pre> + </article> </main> </body> </html>