From bb6bc2387d58c737dbf92e73f8544bf39319dbd8 Mon Sep 17 00:00:00 2001 From: Lena Date: Sat, 1 Aug 2026 00:00:00 +0000 Subject: Enter git-forge A small self-hosted git forge: HTTP push and pull, cgit browsing, local and OIDC accounts, TOTP, scoped push tokens, per-repo permissions, issues, a wiki, and outbound mail. It does not reimplement git. git-http-backend and cgit run as CGI behind its own listener, which authorises every request before exec'ing either. One binary, one data directory, one listener: no database, no JavaScript, and state is JSON in a git repo with a working tree. --- templates/wiki.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 templates/wiki.html (limited to 'templates/wiki.html') diff --git a/templates/wiki.html b/templates/wiki.html new file mode 100644 index 0000000..36305c6 --- /dev/null +++ b/templates/wiki.html @@ -0,0 +1,37 @@ +{{define "title"}}Wiki {{.Data.Page}} - {{.Data.Path}} - {{.Site}}{{end}} +{{define "main"}} +

Wiki{{with .Data.Page}} {{.}}{{end}}

+ +{{with .Data.Pages}} +

+Pages: +{{range .}}{{if .}}{{.}}{{else}}index{{end}} +{{end}} +

+{{end}} + +{{if .Data.Can}} +
+

+ + + +

+
+{{end}} + +{{if .Data.Empty}} +

This wiki has no pages yet.

+{{if .Data.Can}}

Write the first one.

{{end}} +{{else if .Data.Missing}} +

There is no page here yet.

+{{if .Data.Can}}

Write it.

{{end}} +{{else}} +
{{.Data.Rendered}}
+

+{{if .Data.Can}}Edit{{end}} +History +

+{{end}} + +{{end}} -- cgit v1.2.3