aboutsummaryrefslogtreecommitdiff
path: root/templates/_group_path.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-25 03:03:25 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-25 03:03:25 +0800
commit99fefccd70d3d006a9f3ddccc45eda559af1f197 (patch)
tree44d7a59fe9a041385136787bc1a06496b27ad65d /templates/_group_path.tmpl
parentUse cache for raw files too (diff)
downloadforge-99fefccd70d3d006a9f3ddccc45eda559af1f197.tar.gz
forge-99fefccd70d3d006a9f3ddccc45eda559af1f197.tar.zst
forge-99fefccd70d3d006a9f3ddccc45eda559af1f197.zip
Fix group path trailing slash
Diffstat (limited to 'templates/_group_path.tmpl')
-rw-r--r--templates/_group_path.tmpl2
1 files changed, 1 insertions, 1 deletions
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 -}}