From 0eece2a92e44e7215ea44b96146f388e5f199bcb Mon Sep 17 00:00:00 2001 From: pho4cexa Date: Sun, 8 Jan 2023 09:27:39 -0800 Subject: [PATCH] improved template variables for working with ForgeRoot --- assets/templates/default.html | 6 ++++-- main.scm | 17 ++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/assets/templates/default.html b/assets/templates/default.html index 9fe4f23..29b4722 100644 --- a/assets/templates/default.html +++ b/assets/templates/default.html @@ -23,8 +23,10 @@

git.example.com

-

{{ repository_name }}

-

clone url: git://git.example.com{{ forge_url_path }}{{ repository_path }}

+

{{ repository_path_parent }} + {% if repository_path_parent %} / {% endif %} + {{ repository_name }}

+

clone url: git://git.example.com/{{ repository_path }}