{{/* {{- $startLevel := 2 -}} {{- $endLevel := 3 -}} {{ with .Param "markup.tableOfContents.startLevel" }} {{- $startLevel = . }} {{- end }} {{ with .Param "markup.tableOfContents.endLevel" }} {{- $endLevel = . }} {{- end -}} {{ debug.Dump ($startLevel) }} {{ debug.Dump ($endLevel) }} {{- define "headings" }} {{- $startLevel := .startLevel -}} {{- $endLevel := .endLevel -}} {{- with .headings }} {{- if and (.Title) (ge .Level $startLevel) (le .Level $endLevel) -}} {{ print (strings.Repeat (sub .Level 1) "\t") }}