From 99fefccd70d3d006a9f3ddccc45eda559af1f197 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 25 Mar 2025 03:03:25 +0800 Subject: Fix group path trailing slash --- templates/_group_path.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/_group_path.tmpl') diff --git a/templates/_group_path.tmpl b/templates/_group_path.tmpl index 3a14edc..8904563 100644 --- a/templates/_group_path.tmpl +++ b/templates/_group_path.tmpl @@ -4,5 +4,5 @@ */}} {{- define "group_path_plain" -}} {{- $p := . -}} -{{- range $i, $s := . -}}{{- $s -}}{{- if ne $i (len $p) -}}/{{- end -}}{{- end -}} +{{- range $i, $s := . -}}{{- $s -}}{{- if ne $i (minus (len $p) 1) -}}/{{- end -}}{{- end -}} {{- end -}} -- cgit v1.2.3