mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-21 21:06:03 +03:00
Add Edit this page on Gitea links at the bottom of every page
This commit is contained in:
parent
bfc510e804
commit
4997c347ce
7
.zs/editthispage
Executable file
7
.zs/editthispage
Executable 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"
|
@ -26,6 +26,7 @@
|
||||
</header>
|
||||
<aside>{{ onthispage }}</aside>
|
||||
<article>{{ content }}</article>
|
||||
{{ editthispage }}
|
||||
<footer>
|
||||
Copyright © James Mills ·
|
||||
Last modified <time datetime="{{ date +%Y-%m-%dT%H:%M:%SZ%:z }}">{{ date }}</time> ·
|
||||
|
Loading…
Reference in New Issue
Block a user