repos / pgit

static site generator for git
git clone https://github.com/picosh/pgit.git

pgit / html
Eric Bower · 17 Aug 23

refs.page.tmpl

 1{{template "base" .}}
 2
 3{{define "title"}}refs - {{.Repo.RepoName}}{{end}}
 4{{define "meta"}}{{end}}
 5
 6{{define "content"}}
 7  <h2 class="text-lg font-bold">refs</h2>
 8
 9  <ul>
10  {{range .Refs}}
11    {{if .URL}}
12      <li><a href="{{.URL}}">{{.Refspec}}</a></li>
13    {{else}}
14      <li>{{.Refspec}}</li>
15    {{end}}
16  {{end}}
17  </ul>
18{{end}}