Skip to content

Instantly share code, notes, and snippets.

@zhonger
Created January 12, 2022 14:06
Show Gist options
  • Save zhonger/bb8e9c184d2385961a21d86e171ce313 to your computer and use it in GitHub Desktop.
Save zhonger/bb8e9c184d2385961a21d86e171ce313 to your computer and use it in GitHub Desktop.
{% if site.toc %}
<div class="container">
<div class="contents">
<article class="markdown-body">
{{ page.content }}
</article>
</div>
<div class="table-of-contents">
<h2>Contents</h2>
{% include toc.html html=content %}
</div>
</div>
{% else %}
<article class="markdown-body">
{{ page.content }}
</article>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment