diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-25 03:03:25 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-25 03:03:25 +0800 |
commit | 99fefccd70d3d006a9f3ddccc45eda559af1f197 (patch) | |
tree | 44d7a59fe9a041385136787bc1a06496b27ad65d /templates/group.tmpl | |
parent | Use cache for raw files too (diff) | |
download | forge-99fefccd70d3d006a9f3ddccc45eda559af1f197.tar.gz forge-99fefccd70d3d006a9f3ddccc45eda559af1f197.tar.zst forge-99fefccd70d3d006a9f3ddccc45eda559af1f197.zip |
Fix group path trailing slash
Diffstat (limited to '')
-rw-r--r-- | templates/group.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/group.tmpl b/templates/group.tmpl index 98d4c76..3a4a7d1 100644 --- a/templates/group.tmpl +++ b/templates/group.tmpl @@ -13,7 +13,7 @@ <body class="group"> {{- template "header" . -}} <div class="padding-wrapper"> - <p>{{- range $i, $s := .group_path -}}{{- $s -}}{{- if ne $i (len $group_path) }} / {{ end -}}{{- end -}} + <p>{{- range $i, $s := .group_path -}}{{- $s -}}{{- if ne $i (minus (len $group_path) 1) }} / {{ end -}}{{- end -}} {{- if .description -}} <p>{{- .description -}}</p> {{- end -}} |