{{ if isset .Params "toc"}}
<section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
    <div class="post-toc">
        <div class="post-toc-content">{{ .TableOfContents }}</div>
    </div>
</section>
{{ end }}