{{ define "commit" }} {{ template "head" . }}

{{ .meta.Title }}

{{ .meta.Description }}

{{ template "nav" . }}

author: {{ .commit.Author.Name }} <{{ .commit.Author.Email}}> on {{ .commit.Author.When }}

commit: {{ .commit.This }}

parent: {{ .commit.Parent }}

{{ .stat.FilesChanged }} files changed, {{ .stat.Insertions }} insertions(+), {{ .stat.Deletions }} deletions(-)

{{ range .diff }} {{ if .Name.Old }}

{{ .Name.Old }} → {{ .Name.New }}

{{ else }}

{{.Name.New }}

{{- end -}}
            {{- range .TextFragments -}}
            

{{- .Header -}}

{{- range .Lines -}} {{- if eq .Op.String "+" -}} {{ .String }} {{- end -}} {{- if eq .Op.String "-" -}} {{ .String }} {{- end -}} {{- end -}} {{- end -}}
{{ end }}
{{ end }}