file.page.tmpl

 1{{template "base" .}}
 2{{define "title"}}{{.Item.Path}}@{{.RevData.Name}}{{end}}
 3{{define "meta"}}{{end}}
 4
 5{{define "content"}}
 6  <div class="breadcrumb">
 7    {{range .Item.Crumbs}}
 8      <a href="{{.URL}}">{{.Text}}</a> {{if .IsLast}}{{else}}/{{end}}
 9    {{end}}
10  </div>
11
12  {{if .Repo.HideTreeLastCommit}}
13  {{else}}
14  <div class="file-header">
15    <div class="commit-item__header">
16      <div class="commit-item__content">
17        <div class="commit-item__message"><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-vertical-icon lucide-git-commit-vertical"><path d="M12 3v6"/><circle cx="12" cy="12" r="3"/><path d="M12 15v6"/></svg><a href="{{.Item.CommitURL}}">{{.Item.Summary}}</a></div>
18        <div class="commit-item__meta">
19          <span class="font-bold">{{.Item.Author.Name}}</span>
20          <span>&nbsp;&centerdot;&nbsp;</span>
21          <span>{{.Item.When}}</span>
22        </div>
23      </div>
24
25      <div class="commit-item__actions">
26        <a href="{{.Item.CommitURL}}" class="commit-item__hash">{{.Item.CommitID}}</a>
27      </div>
28    </div>
29  </div>
30  {{end}}
31
32  <h2 class="content-heading">{{.Item.Name}}</h2>
33
34  {{.Contents}}
35{{end }}