From 4997c347ce600ed769a5e9f1a125ec0fc7563246 Mon Sep 17 00:00:00 2001 From: James Mills <1290234+prologic@users.noreply.github.com> Date: Sat, 1 Apr 2023 11:37:01 +1000 Subject: [PATCH] Add Edit this page on Gitea links at the bottom of every page --- .zs/editthispage | 7 +++++++ .zs/layout.html | 1 + 2 files changed, 8 insertions(+) create mode 100755 .zs/editthispage diff --git a/.zs/editthispage b/.zs/editthispage new file mode 100755 index 0000000..849729b --- /dev/null +++ b/.zs/editthispage @@ -0,0 +1,7 @@ +#!/bin/sh + +GITEA_BASE_URL="https://git.mills.io/prologic/zs-starter-template/_edit/main/index.md" + +url="${GITEA_BASE_URL}/${ZS_FILE}" + +printf "✍️ Edit this page on Gitea." "$url" diff --git a/.zs/layout.html b/.zs/layout.html index b950219..5ce36ed 100644 --- a/.zs/layout.html +++ b/.zs/layout.html @@ -26,6 +26,7 @@
{{ content }}
+ {{ editthispage }}