From 6cceade2da5425a2a1c46ac032263c961e81affb Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 12 Aug 2025 08:41:09 +0800 Subject: Sticky footer --- forged/templates/repo_index.tmpl | 144 ++++++++++++++++++++------------------- 1 file changed, 73 insertions(+), 71 deletions(-) (limited to 'forged/templates/repo_index.tmpl') diff --git a/forged/templates/repo_index.tmpl b/forged/templates/repo_index.tmpl index d040f3a..a0d2b7b 100644 --- a/forged/templates/repo_index.tmpl +++ b/forged/templates/repo_index.tmpl @@ -12,80 +12,82 @@ {{- template "header" . -}} -
-

{{- .repo_name -}}

- -
-
-
- {{- .repo_description -}} +
+
+

{{- .repo_name -}}

+
-
- {{- if .notes -}} -
Notes
- -
- {{- end -}} -

{{- .ssh_clone_url -}}

- {{- if .ref_name -}} -

- - Warning: Due to various recent migrations, viewing non-HEAD refs may be broken. - -

- {{- end -}} - {{- if .commits -}} -
- {{- range .commits -}} -
-
- - {{- .Hash | printf "%.8s" -}} - -  — {{- .Author -}} - - {{- .Date -}} - -
-
{{- .Message | first_line -}}
-
- {{- end -}} - {{- if dereference_error .commits_err -}} -
- Error while obtaining commit log: {{ .commits_err }} -
- {{- end -}} +
+
+ {{- .repo_description -}} +
- {{- end -}} - {{- if .readme -}} -
- {{- .readme -}} + {{- if .notes -}} +
Notes
+
    + {{- range .notes -}}
  • {{- . -}}
  • {{- end -}} +
- {{- end -}} + {{- end -}} +

{{- .ssh_clone_url -}}

+ {{- if .ref_name -}} +

+ + Warning: Due to various recent migrations, viewing non-HEAD refs may be broken. + +

+ {{- end -}} + {{- if .commits -}} +
+ {{- range .commits -}} +
+
+ + {{- .Hash | printf "%.8s" -}} + +  — {{- .Author -}} + + {{- .Date -}} + +
+
{{- .Message | first_line -}}
+
+ {{- end -}} + {{- if dereference_error .commits_err -}} +
+ Error while obtaining commit log: {{ .commits_err }} +
+ {{- end -}} +
+ {{- end -}} + {{- if .readme -}} +
+ {{- .readme -}} +
+ {{- end -}} + -- cgit v1.2.3