From 7d99afc5cd3ddfc7a875754f4593812b8c2664c8 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Mon, 12 Dec 2022 20:53:44 +0530 Subject: templates: fix 404 and 500 --- templates/404.html | 4 +++- templates/500.html | 2 ++ templates/nav.html | 7 ++++--- templates/repo.html | 5 +++++ 4 files changed, 14 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/404.html b/templates/404.html index c3825f4..931ea9b 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,7 +1,9 @@ +{{ define "404" }} 404 -{{ template "header" . }} +{{ template "head" . }} 404 — nothing like that here +{{ end }} diff --git a/templates/500.html b/templates/500.html index 919f26c..5495d31 100644 --- a/templates/500.html +++ b/templates/500.html @@ -1,3 +1,4 @@ +{{ define "500" }} 500 {{ template "header" . }} @@ -5,3 +6,4 @@ 500 — something broke! +{{ end }} diff --git a/templates/nav.html b/templates/nav.html index 7568f01..20dca50 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -1,9 +1,10 @@ {{ define "nav" }} {{ end }} diff --git a/templates/repo.html b/templates/repo.html index 3c99df5..a033f0d 100644 --- a/templates/repo.html +++ b/templates/repo.html @@ -44,6 +44,11 @@ {{ end }} {{ end }} +
+
+          {{- if .readme }}{{ .readme }}{{- end -}}
+        
+
-- cgit