Add Edit this page on Gitea links at the bottom of every page

This commit is contained in:
James Mills 2023-04-01 11:37:01 +10:00
parent bfc510e804
commit 4997c347ce
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
2 changed files with 8 additions and 0 deletions

7
.zs/editthispage Executable file
View File

@ -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 "<a href=\"%s\">✍️ Edit this page on Gitea.</a>" "$url"

View File

@ -26,6 +26,7 @@
</header>
<aside>{{ onthispage }}</aside>
<article>{{ content }}</article>
{{ editthispage }}
<footer>
Copyright &copy; James Mills ·
Last modified <time datetime="{{ date +%Y-%m-%dT%H:%M:%SZ%:z }}">{{ date }}</time> ·