From a3d2daf4636cae1d21ac8d3c28b3fe0db25a4916 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 10:58:32 +0800 Subject: repo_tree: Add anchors to entries --- templates/repo_tree_dir.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates/repo_tree_dir.html') diff --git a/templates/repo_tree_dir.html b/templates/repo_tree_dir.html index ed893fd..14dc15a 100644 --- a/templates/repo_tree_dir.html +++ b/templates/repo_tree_dir.html @@ -19,10 +19,12 @@ +{{- $ref := .ref }} +{{- $path_spec := .path_spec }} {{- range .files }} {{ .Mode }} -{{ .Name }} +{{ .Name }}{{ if not .Is_file }}/{{ end }} {{ .Size }} {{- end }} -- cgit v1.2.3