{{ page.title }} {% if page.date %}{{ page.date | date(format="%B %d, %Y") }}{% endif %} {% if page.content is containing("") %} {% set parts = page.content | split(pat="") %} {{ parts[0] | safe }} Table of Contents {% for h2 in page.toc %} {{ h2.title }} {% if h2.children %} {% for h3 in h2.children %} {{ h3.title }} {% endfor %} {% endif %} {% endfor %} {{ parts[1] | safe }} {% else %} {{ page.content | safe }} {% endif %}