{% for post in site.posts %} {% assign name=post.id | split: '/' | last %} {% if name != include.name %} {% continue %} {% endif %} {% assign temp = post.content | markdownify %} {% assign purl = post.url | relative_url %} {% include toc.html html=temp base_url=purl h_max=3 %} {% endfor %}