From 6bd31945bdf23e67288b749c777b5e4693723247 Mon Sep 17 00:00:00 2001 From: James Mills Date: Fri, 4 Oct 2024 01:08:28 +1000 Subject: [PATCH] Fix editthispage --- .zs/editthispage | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.zs/editthispage b/.zs/editthispage index 0429aae..bf64a14 100755 --- a/.zs/editthispage +++ b/.zs/editthispage @@ -1,5 +1,9 @@ #!/bin/sh -url="${ZS_FILE}?edit" +GITEA_BASE_URL="https://git.mills.io" +REPO="prologic/zs-starter-template" +BRANCH="main" -printf "✍️ Edit this page" "$url" +url="${GITEA_BASE_URL}/${REPO}/_edit/${BRANCH}/${ZS_FILE}" + +printf "✍️ Edit Page on Gitea" "$url"