repos / pgit

Improved static site generator for git repos
git clone https://github.com/xplshn/pgit.git

pgit / html
[CI] pgitBot  ·  2026-02-26

language.page.tmpl

Cheetah
 1{{template "base" .}}
 2
 3{{define "title"}}Files for {{.Language}} - {{.Repo.RepoName}}{{end}}
 4{{define "meta"}}{{end}}
 5
 6{{define "content"}}
 7  <h2 class="text-lg">Files written in {{.Language}}</h2>
 8
 9  {{range .Files}}
10    <div class="flex justify-between items-center gap-2 p tree-row border-b">
11      <div class="flex-1 tree-path flex items-center gap">
12        <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" height="16" width="16" viewBox="0 0 384 512">
13          <path d="M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z"/>
14        </svg>
15        <a href="{{.URL}}">{{.Path}}</a>
16      </div>
17    </div>
18  {{end}}
19{{end}}