From 8be70d1b7744aa120a0bd18552ec3cd09c972827 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 10:38:49 +0800 Subject: [PATCH] repo_index: Add / to directories in name listings --- templates/repo_index.html | 2 +- diff --git a/templates/repo_index.html b/templates/repo_index.html index cf1326f76ec0a36f23a87232f89ce45b5fd3c2ca..13ac023e4395c9a5c78aa7670712e5d13f55304e 100644 --- a/templates/repo_index.html +++ b/templates/repo_index.html @@ -46,7 +46,7 @@ {{- $ref := .ref }} {{- range .files }} {{ .Mode }} -{{ .Name }} +{{ .Name }}{{ if not .Is_file }}/{{ end }} {{ .Size }} {{- end }} -- 2.48.1