Skip to content

Instantly share code, notes, and snippets.

@sharu725
Last active August 19, 2017 07:38
Show Gist options
  • Save sharu725/2e3b740d14edcd493b623fec5dc1c228 to your computer and use it in GitHub Desktop.
Save sharu725/2e3b740d14edcd493b623fec5dc1c228 to your computer and use it in GitHub Desktop.
Jekyll Table of Contents
<!--
Before implementing this Jekyll snippet make sure
1. you have defined "markdown: kramdown" in _config.yml.
-->
* Do not remove this line (it will not be displayed)
{:toc}
<style>
#markdown-toc::before {
content: "Contents";
font-weight: bold;
}
#markdown-toc ul {
list-style: decimal;
}
#markdown-toc {
border: 1px solid #aaa;
padding: 1.5em;
list-style: decimal;
display: inline-block;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment