templates: fix 404 and 500
Anirudh Oppiliappan x@icyphox.sh
PGP Signature
-----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEE/huPz+bBYiLxVxyOipP5b3jF1MQFAmOXR4kACgkQipP5b3jF 1MSYgAf/ZPSJ6MunKuSo/1BaY0FwPJO7/hky4hU5iURNyr4/9qPrTTASW5JrS4dC Lb/qFxBDZjN9mR8Ue3d38P8ABaSBXuVTp+yYTuy5Cw2ExrICflBiDe1q9Gg7ZbVr yjyci0Kg9+L/NpNPaa4SjzBgbLKtGxeQRHYF70n48KMbTNq57PpysB+Y52o8HooB qjIppTJkIaQTupg1v0mNyvI8XLJtFPKKr8es29RmM0pvEzjHCs4xUGo6/iGTUDNb iQvX4K4gm28iLYdMt1IDDrsPlAEBNnv3JBPJiXVi91bt3GdPlPnuLfm9FlW9CKyy 4crVZGO3ekZ7ozZFJVvxwzgyijdFPQ== =SnQu -----END PGP SIGNATURE-----
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>