From f4ff8fe6eb20ab5b557d7beac095959890e126e8 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 20 Feb 2024 00:24:38 +0000 Subject: fix routes --- templates/repo.html | 57 +++++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 28 deletions(-) (limited to 'templates/repo.html') diff --git a/templates/repo.html b/templates/repo.html index 1cd9b5c..957faba 100644 --- a/templates/repo.html +++ b/templates/repo.html @@ -4,35 +4,36 @@ {{ template "repoheader" . }} - - {{ template "nav" . }} -
- {{ $repo := .name }} -
- {{ range .commits }} -
-
{{ slice .Hash.String 0 8 }}
-
{{ .Message }}
-
-
- {{ .Author.Name }} {{ .Author.Email }} -
{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
-
- {{ end }} + + {{ template "nav" . }} +
+ {{ $repo := .repo }} +
+ {{ range .commits }} +
+ +
{{ .Message }}
-{{- if .readme }} -
- {{- .readme -}} -
-{{- end -}} +
+ {{ .Author.Name }} {{ .Author.Email }} +
{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
+
+ {{ end }} +
+ {{- if .readme }} +
+ {{- .readme -}} +
+ {{- end -}} -
+
clone -
-git clone https://{{ .servername }}/{{ .name }}
-        
-
-
- +
+        git clone https://{{ .servername }}/{{ .repo }}
+      
+
+
+ + -{{ end }} +{{ end }} \ No newline at end of file -- cgit