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/home.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 templates/home.html (limited to 'templates/home.html') diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..a7460f8 --- /dev/null +++ b/templates/home.html @@ -0,0 +1,16 @@ +{{define "title"}}{{.Site}}{{end}} +{{define "main"}} + + +{{range .Data.Repos}} + + + + +{{else}} + +{{end}} +
NameDescription
{{.Path}}{{if eq .Repo.Visibility "private"}} private{{end}}{{.Repo.Desc}}
+{{if $.User}}Nothing you can read yet.{{else}}Nothing public here. Sign in to see the rest.{{end}} +
+{{end}} -- cgit v1.2.3