{{ if .Params.toc  }}
<section>
  <details closed class="toc">
    <summary>Contents</summary>
    {{ .TableOfContents }}
  </details>
</section>
{{ end  }}

Add table of contents partial template.
Add table of contents partial template.
