repos / pgit

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

pgit / html
Eric Bower · 14 Jan 24

header.partial.tmpl

 1{{define "header"}}
 2<div class="flex flex-col gap-2">
 3  <h1 class="text-xl flex gap p-0">
 4    {{if .SiteURLs.HomeURL}}
 5      <a href="{{.SiteURLs.HomeURL}}">repos</a>
 6      <span>/</span>
 7    {{end}}
 8    <span>{{.Repo.RepoName}}</span>
 9  </h1>
10
11  <nav class="text-lg">
12    <a href="{{.SiteURLs.SummaryURL}}">summary</a> |
13    <a href="{{.SiteURLs.RefsURL}}">refs</a> |
14    <span class="font-bold">{{.RevData.Name}}</span> |
15    <a href="{{.RevData.TreeURL}}">code</a> |
16    <a href="{{.RevData.LogURL}}">commits</a>
17  </nav>
18
19  <div>
20    <div class="text-lg">{{.Repo.Desc}}</div>
21    <pre class="m-0">git clone {{.SiteURLs.CloneURL}}</pre>
22  </div>
23</div>
24{{end}}