GitHub repository
{% for other_page in site.html_pages %} {% if page.title == other_page.title %}
{{ other_page.title }}
{% capture whitespace %} {% assign min_header = 2 %} {% assign max_header = 3 %} {% assign nodes = content | split: "
max_header %} {% continue %} {% endif %} {% if first_header %} {% assign first_header = false %} {% assign min_header = header_level %} {% endif %} {% assign indent_level = header_level | minus: min_header | add: 1 %} {% assign header_content = node | split: '
' | first }}>{% endcapture %} {% assign header = header_content | replace: header_attrs_to_strip, '' %} {% assign space = '' %} {% for i in (1..indent_level) %} {% assign space = space | prepend: ' ' %} {% endfor %} {% capture my_toc %}{{ my_toc }} {{ space }}- [{{ header }}](#{{ html_id }}){: .nav-link}{% endcapture %} {% endfor %} {% endcapture %} {{ my_toc | strip | markdownify | strip }} {% else %}
{{ other_page.title }}
{% endif %} {% endfor %}
☰
{{ content }}