Fix editthispage

This commit is contained in:
James Mills 2024-10-04 01:08:28 +10:00
parent d76322de1f
commit 6bd31945bd
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6

View File

@ -1,5 +1,9 @@
#!/bin/sh #!/bin/sh
url="${ZS_FILE}?edit" GITEA_BASE_URL="https://git.mills.io"
REPO="prologic/zs-starter-template"
BRANCH="main"
printf "<a href=\"%s\" rel=\"nofollow\" target=\"_self\">✍️ Edit this page</a>" "$url" url="${GITEA_BASE_URL}/${REPO}/_edit/${BRANCH}/${ZS_FILE}"
printf "<a href=\"%s\" rel=\"nofollow\" target=\"_blank\">✍️ Edit Page on Gitea</a>" "$url"