{{ if and (gt .WordCount 400 ) (.Params.toc) }}
<aside class="toc">
<header>
<h2>Table of contents</h2>
</header>
{{.TableOfContents}}
</aside>
{{ end }}