1234567891011<ol> {{ range . }} <li> <a href="#{{ .Anchor }}">{{ .HTML }}</a> {{ if .Items }} {{ template "_subtoc.html.tmpl" .Items }} {{ end }} </li> {{ end }}</ol>