From 7386392b8cd08e73e4f5fa6080e8f4fcf20831f6 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 27 Jul 2024 08:00:00 +0800 Subject: Some more HTML sanities --- templates/repo.html | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) (limited to 'templates/repo.html') diff --git a/templates/repo.html b/templates/repo.html index a9f4a49..6bcc294 100644 --- a/templates/repo.html +++ b/templates/repo.html @@ -1,37 +1,33 @@ {{ define "repo" }} -{{ template "head" . }} - -{{ template "repoheader" . }} - + {{ template "head" . }} + {{ 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" }}
-
+
+
{{ slice .Hash.String 0 8 }}
+
{{ .Message }}
+
+
+ {{ .Author.Name }} {{ .Author.Email }} +
{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
+
{{ end }}
-{{- if .readme }} -
- {{- .readme -}} -
-{{- end -}} + {{- if .readme }} +
+ {{- .readme -}} +
+ {{- end -}}
clone -
-git clone https://{{ .servername }}/{{ .name }}
-				
+
git clone https://{{ .servername }}/{{ .name }}
-- cgit v1.2.3