1 2 3 4 5 6
{{- if .Params.toc -}} <table-contents> <h2>Table of Contents</h2> {{ .TableOfContents }} </table-contents> {{- end -}}