{{- if .context.Params.contents -}} {{- partial "blocks/toc.html" .context.Params.contents -}} {{- end -}}