orchard
mirrorEvery site I host, in one repo, along with the Cloudflare Tunnel and Caddy that front them. It's all Go, Vite, and SQLite, and it runs on a desktop at home with nothing listening on an inbound port.
blogbuncaddycloudflare-tunneldockergogolanghomelabhtml-templatemonorepoself-hostedseosqlitestatic-sitetypstuptime-monitoringviteweb-analytics
1{{define "content"}}
2{{$d := .Data}}{{$c := $d.Ctx}}
3{{template "repohead" (dict "Ctx" $c "Tab" "log")}}
4
5<article class="commitfull">
6 <h2>{{$d.Commit.Subject}}</h2>
7 {{if $d.Commit.Body}}<pre class="body">{{$d.Commit.Body}}</pre>{{end}}
8
9 <p class="meta">
10 <code>{{$d.Commit.SHA}}</code>
11 · {{$d.Commit.Author}} <{{$d.Commit.Email}}>
12 · <time title="{{$d.Commit.When.Format "2006-01-02 15:04:05 MST"}}">{{humanTime $d.Commit.When}}</time>
13 </p>
14
15 <p class="meta">
16 {{range $d.Commit.Parents}}
17 parent <a href="/{{$c.Repo.Name}}/commit/{{.}}">{{shortSHA .}}</a>
18 {{end}}
19 · <a href="/{{$c.Repo.Name}}/tree/{{$d.Commit.SHA}}">Browse at this commit</a>
20 </p>
21
22 <p class="diffstat">
23 {{len $d.Diff.Files}} {{pluralize (len $d.Diff.Files) "file" "files"}} changed,
24 <ins>+{{$d.Diff.Additions}}</ins> <del>-{{$d.Diff.Deletions}}</del>
25 </p>
26
27 {{if $d.Diff.Truncated}}
28 <p class="notice">This diff is too large to show in full. The counts above are for the part that was read.</p>
29 {{end}}
30
31 {{range $d.Diff.Files}}{{template "difffile" (dict "File" .)}}{{end}}
32</article>
33{{end}}