<!-- Reusable template for table of contents (i.e. start or sidebar of posts single pages) -->
{{ if .Params.toc }}
  <aside class="toc">
    <div id="js-toc-toggle">
      <h2 class="toc-header">Table of Contents</h2>
      <span class="toc-drop-icon">&blacktriangledown;</span>
    </div>
    <div id="js-toc-contents" class="toc-contents">{{ .TableOfContents }}</div>
  </aside>
{{ end }}