{{define "content"}} {{$p := .Data.Page}} {{template "crumbs" .Data}}

{{size .Data.Size}} · Raw{{if .Data.Markdown}} · Source{{end}} · History

{{if .Data.Binary}}

Binary file, see raw.

{{else if .Data.Large}}

File too large to display, see raw.

{{else if .Data.Markdown}}
{{.Data.Markdown}}
{{else if .Data.Highlighted}}
{{.Data.Highlighted}}
{{else}} {{range $i, $l := lines .Data.Content}}{{end}}
{{inc $i}}{{$l}}
{{end}} {{end}} {{define "crumbs"}} {{$p := .Page}}

{{$p.Repo.Name}}{{range $i, $c := .Crumbs}}/{{$c}}{{end}} at {{$p.Ref}}

{{end}}