{{ define "main" }} {{ $nav := nav "docs-nav" . }}
{{ template "docs-sidebar" . }}
{{ with $nav.Trail }}

{{ range $i, $t := . }}{{ if $i }} › {{ end }}{{ if .Page }}{{ .Title }}{{ else }}{{ .Title }}{{ end }}{{ end }}

{{ end }}

{{ with $nav.Here }}{{ .Title }}{{ else }}{{ .Title }}{{ end }}

{{ with .Summary }}

{{ . }}

{{ else }}{{ with $nav.Here }}{{ with .Blurb }}

{{ . }}

{{ end }}{{ end }}{{ end }} {{ with .Content }}
{{ . }}
{{ end }} {{ with $nav.Here }}{{ with .Children }}
    {{ range . }}
  1. {{ .Title }}{{ with .Page }}{{ with .Summary }}

    {{ . }}

    {{ end }}{{ else }}{{ with .Blurb }}

    {{ . }}

    {{ end }}{{ end }}
  2. {{ end }}
{{ end }}{{ end }} {{ template "docs-prevnext" . }}
{{ end }}