summaryrefslogtreecommitdiff
path: root/templates/ref.gph
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-10-09 09:01:24 -0600
committertjpcc <tjp@ctrl-c.club>2023-10-09 09:01:24 -0600
commit68e2091437e178dc98987d463180c17bfe346b9a (patch)
treed418d8c379736dd564af87ba935a172a61c28e0b /templates/ref.gph
parentd5566a4ed9adf999e2e6a781913df27a0d9c77fe (diff)
use the {{join}} function in gopher templates
$.Selector can be "/", which is handled better by 'join' than just concatenating with the template itself
Diffstat (limited to 'templates/ref.gph')
-rw-r--r--templates/ref.gph2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/ref.gph b/templates/ref.gph
index c7de102..f6b00cc 100644
--- a/templates/ref.gph
+++ b/templates/ref.gph
@@ -11,7 +11,7 @@ i {{$.Selector}} {{$.Host}} {{$.Port}}
{{ end -}}
{{ end -}}
1🗂️ Repository {{combine $.Selector ".."}} {{$.Host}} {{$.Port}}
-1📄 Files {{$.Selector}}/tree {{$.Host}} {{$.Port}}
+1📄 Files {{join $.Selector "/tree"}} {{$.Host}} {{$.Port}}
{{ if ne .Parents nil -}}
0🔩 Full Diff {{join $.Selector "../../diff" .ParentHash .Hash}} {{$.Host}} {{$.Port}}
{{ else -}}