Skip to content

Commit

Permalink
Rename toc.html to jekyll-toc.html
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Oct 4, 2021
1 parent f2f0557 commit 7763dc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _includes/toc.html → _includes/jekyll-toc.html
Expand Up @@ -30,7 +30,7 @@
"...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe

Usage:
{% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
{% include jekyll-toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}

Parameters:
* html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
Expand Down
2 changes: 1 addition & 1 deletion _layouts/article.html
Expand Up @@ -14,7 +14,7 @@ <h1 class="h0-mktg lh-condensed text-center mb-3">{{ page.title }}</h1>
<a class="toc-trigger d-block text-center p-3">
<span class="text-black">{{ t.article.table_of_contents }}</span><svg height="18" class="octicon octicon-triangle-down ml-2 fill-blue v-align-middle icon-flip" viewBox="0 0 12 16" version="1.1" width="13" role="img"><path fill-rule="evenodd" d="M0 5l6 6 6-6z"></path></svg>
</a>
{% include toc.html html=content h_max=2 ordered=true class="toc-list list-style-none" item_class="border-top" anchor_class="d-block py-3 px-3" %}
{% include jekyll-toc.html html=content h_max=2 ordered=true class="toc-list list-style-none" item_class="border-top" anchor_class="d-block py-3 px-3" %}
</div>
</nav>
<div class="col-sm-10 mx-auto lh-none cover-img">
Expand Down

0 comments on commit 7763dc5

Please sign in to comment.