Something went wrong. Try again.
A static site generator for git repositories that integrates with git-bug to track issues. This is it.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142{{define "header"}}<div class="site-header"> <h1 class="site-header__title"> {{if .SiteURLs.HomeURL}} <a href="{{.SiteURLs.HomeURL}}"> <img src="{{.Repo.RootRelative}}{{.Repo.FaviconPath}}" class="site-header__logo" alt="Logo" /> </a> {{end}} <span class="site-header__repo-name">{{.Repo.RepoName}}</span> </h1> {{if .Repo.Desc}}<div class="site-header__desc">{{.Repo.Desc}}</div>{{end}}
<nav class="nav-menu"> {{if eq .Active "summary"}}<span class="active">summary</span>{{else}}<a href="{{.SiteURLs.SummaryURL}}">summary</a>{{end}} {{if eq .Active "refs"}}<span class="active">refs</span>{{else}}<a href="{{.SiteURLs.RefsURL}}">refs</a>{{end}} {{if eq .Active "code"}}<span class="active">code</span>{{else}}<a href="{{.RevData.TreeURL}}">code</a>{{end}} {{if eq .Active "commits"}}<span class="active">commits</span>{{else}}<a href="{{.RevData.LogURL}}">commits</a>{{end}} {{if .SiteURLs.IssuesURL}}{{if eq .Active "issues"}}<span class="active">issues</span>{{else}}<a href="{{.SiteURLs.IssuesURL}}">issues</a>{{end}}{{end}} <details class="nav-menu__ref-selector"> <summary>{{.RevData.Name}}</summary> <div class="ref-selector__dropdown"> {{range .Refs}}{{if .URL}}<a href="{{.URL}}">{{.Refspec}}</a>{{end}}{{end}} </div> </details> </nav>
{{if and (eq .Active "summary") .LastCommit}} <div class="last-commit-bar"> <div class="last-commit-bar__info"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-git-commit-horizontal-icon lucide-git-commit-horizontal"><circle cx="12" cy="12" r="3"/><line x1="3" x2="9" y1="12" y2="12"/><line x1="15" x2="21" y1="12" y2="12"/></svg> <span class="font-bold">{{.LastCommit.AuthorStr}}</span> <span> · </span> <a href="{{.LastCommit.URL}}">{{.LastCommit.SummaryStr}}</a> </div> <div class="last-commit-bar__time"> <span class="human-time" data-time="{{.LastCommit.WhenISO}}">{{.LastCommit.WhenDisplay}}</span> </div> </div> {{end}}</div>{{end}}