{{ partial "header" . }} {{ $currentURL := .RelPermalink }}

{{ .Title }}

{{ if .Description }}

{{ .Description }}

{{ end }}
{{ block "main" . }}{{ end }} {{ if eq (len .Pages) 0 }} {{ .Scratch.Set "Docs" .Parent.Pages.ByWeight }} {{ else }} {{ .Scratch.Set "Docs" .Pages.ByWeight }} {{ end }} {{ .Scratch.Set "CurrentWeight" .Weight }} {{ range first 1 (where (.Scratch.Get "Docs") ".Weight" ">" (.Scratch.Get "CurrentWeight")) }}
Next up: {{ .Title }}
{{ end }}
{{ partial "footer" . }}