{{ define "main" }}

{{ .Title }}

{{ partial "document-view.html" . }}
{{ .Content }} {{- if eq .File.Path "notes/_index.md" }} {{- with .RegularPages.ByTitle }}

STANDALONE NOTES

{{- end }} {{- with .Sections.ByTitle }}

SERIES

{{- end }} {{- else }}
    {{- range $index, $page := .RegularPages.ByWeight }}
  1. {{ printf "%02d" (add $index 1) }} {{ $page.LinkTitle }} updated {{ time.Format "2006-01-02" $page.Params.updated }}
  2. {{- end }}
{{- end }}
{{ end }}