mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-24 14:26:04 +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>
|
</header>
|
||||||
<aside>{{ onthispage }}</aside>
|
<aside>{{ onthispage }}</aside>
|
||||||
<article>{{ content }}</article>
|
<article>{{ content }}</article>
|
||||||
|
{{ editthispage }}
|
||||||
<footer>
|
<footer>
|
||||||
Copyright © James Mills ·
|
Copyright © James Mills ·
|
||||||
Last modified <time datetime="{{ date +%Y-%m-%dT%H:%M:%SZ%:z }}">{{ date }}</time> ·
|
Last modified <time datetime="{{ date +%Y-%m-%dT%H:%M:%SZ%:z }}">{{ date }}</time> ·
|
||||||
|
Loading…
Reference in New Issue
Block a user