{{ define "repo.html" }}{{ template "base" . }}{{ end }} {{ define "main" }} {{ $slug := print "/" .Info.Slug }} {{ $m := mod "meta" }}

{{ $m.Title }}

{{ with $m.Description }}

{{ . }}

{{ end }}
branch
{{ $m.DefaultRef }}
updated
{{ with $m.LastCommit }}{{ else }}never{{ end }}
{{ with $m.Section }}
section
{{ . }}
{{ end }} {{ with $m.Clone }}
clone
{{ . }}
{{ end }} {{ with $m.Owner }}
owner
{{ . }}
{{ end }}
{{/* `with` on the slice, not index 0 -- an empty repo has no commits and indexing would abort the render. */}} {{ with mod "log" "1" }}{{ with index . 0 }} {{ .Short }} {{ trunc 88 .Subject }} {{ .Author }} · {{ end }}{{ end }} {{ with modOr "readme" }}
{{ .HTML }}
{{ else }}

No README on {{ $.Ref }}. Browse the files instead.

{{ end }} {{/* Everything else moved to its own page. Modules are lazy, so the ones this view no longer calls cost nothing -- to put authors back, this is the entire change: {{ with mod "authors" }} {{ end }} */}} {{ end }}