{{ if .Params.TableOfContents }} <aside class="table_of_contents"> <h5>Table of Contents</h5> {{- .TableOfContents -}} </aside> {{ end }}