{show ? "Hide" : "Show"} Table of Contents
{#if show} {#each tocGroups as tocGroup (tocGroup.href)}
{tocGroup.name}
{#each tocGroup.items as tocItem (tocItem.href)}
{tocItem.name}
{/each} {/each} {/if}