{{ define "commit.html" }}{{ template "base" . }}{{ end }} {{ define "styles" }} {{ end }} {{ define "main" }} {{ $slug := print "/" .Info.Slug }} {{ $c := mod "commit" }} {{ $d := mod "diff" }}

{{ $c.Subject }}

{{ trunc 12 $c.SHA }} · {{ $c.Author }} ·

{{ with $c.Body }}
{{ . }}
{{ end }} {{ with $c.Parents }}
{{ range . }} parent {{ trunc 12 . }} diff {{ end }}
{{ end }}

Changed files

{{ template "diffstat" (dict "Base" $slug "Ref" $c.SHA "Diff" $d) }}
{{ with $d.Patch }}
{{ patch . }}
{{ end }} {{ end }}