Beside use {{ .TableOfContents}} is it possible to get the items of the ToC in a range loop?
{{ .TableOfContents}}