aboutsummaryrefslogtreecommitdiff
path: root/templates/_group_path.tmpl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/_group_path.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/_group_path.tmpl b/templates/_group_path.tmpl
new file mode 100644
index 0000000..f8b5f47
--- /dev/null
+++ b/templates/_group_path.tmpl
@@ -0,0 +1,8 @@
+{{/*
+ SPDX-License-Identifier: AGPL-3.0-only
+ SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
+*/}}
+{{- define "group_path_plain" -}}
+{{ $p := . }}
+{{ range $i, $s := . }}{{ $s }}{{ if ne $i (len $p) }}/{{ end }}{{ end }}
+{{ end }}