{% comment %} Determine TOC state and return it through variable "enable_toc" {% endcomment %} {% assign enable_toc = false %} {% if site.toc and page.toc %} {% if page.content contains '