{{define "content"}} {{$d := .Data}}
{{if eq $d.Type "repos"}}

{{len $d.Repos}} repositor{{if eq (len $d.Repos) 1}}y{{else}}ies{{end}}{{with $d.Query}} matching {{.}}{{end}}

{{range $d.Repos}}

~{{.Owner.Name}}/{{.Name}}

{{with .Description}}

{{.}}

{{end}}{{if .Tags}}

{{range .Tags}}#{{.}}{{end}}

{{end}}

{{with .Language}}{{.Name}}{{end}}{{if .Stars}}☆ {{.Stars}}{{end}}Updated {{ago .Updated}}

{{else}}

No repositories match. Try a shorter query or clear the language filter.

{{end}} {{else}}

{{len $d.Users}} user{{if ne (len $d.Users) 1}}s{{end}}{{with $d.Query}} matching {{.}}{{end}}{{with $d.Lang}} writing {{.}}{{end}}

{{range $d.Users}}
{{if .Profile.Avatar}}{{else}}{{slice .Name 0 1}}{{end}}

{{with .Profile.Display}}{{.}}{{else}}~{{.Name}}{{end}} ~{{.Name}}

{{with .Profile.Bio}}

{{.}}

{{end}}

{{with .Profile.Location}}{{.}}{{end}}{{.Repos}} public repositor{{if eq .Repos 1}}y{{else}}ies{{end}}Joined {{.Created.Format "January 2006"}}

{{else}}

No users match.

{{end}} {{end}}
{{end}}