Skip to content

Commit

Permalink
Merge pull request #26 from dattranx/master
Browse files Browse the repository at this point in the history
Fix logic mistake in toc.html
  • Loading branch information
allejo authored Aug 17, 2019
2 parents 78acaf9 + 070ffcd commit 3aaa4fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
{% assign minHeader = headerLevel %}
{% endif %}

{% assign indentAmount = headerLevel | minus: minHeader | add: 1 %}
{% assign indentAmount = headerLevel | minus: minHeader %}
{% assign _workspace = node | split: '</h' %}

{% assign _idWorkspace = _workspace[0] | split: 'id="' %}
Expand Down Expand Up @@ -93,4 +93,4 @@
{% capture my_toc %}{: #{{ include.id }}}
{{ my_toc | lstrip }}{% endcapture %}
{% endif %}
{% endcapture %}{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }}
{% endcapture %}{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }}

0 comments on commit 3aaa4fa

Please sign in to comment.