File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
_site
2
2
.sass-cache
3
+ .jekyll-cache
3
4
.jekyll-metadata
4
5
Gemfile.lock
5
6
vendor
Original file line number Diff line number Diff line change 1
1
{% capture tocWorkspace %}
2
2
{% comment %}
3
- Version 1.0.8
3
+ Version 1.0.9
4
4
https://github.com/allejo/jekyll-toc
5
5
6
6
"...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
75
75
{% assign space = space | prepend: ' ' %}
76
76
{% endfor %}
77
77
78
- {% unless include.item_class = = blank %}
78
+ {% if include.item_class and include.item_class ! = blank %}
79
79
{% capture listItemClass %}{:.{{ include.item_class | replace: '%level%', headerLevel }}}{% endcapture %}
80
- {% endunless %}
80
+ {% endif %}
81
81
82
82
{% capture heading_body %}{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}{% endcapture %}
83
83
{% capture my_toc %}{{ my_toc }}
84
84
{{ space }}{{ listModifier }} {{ listItemClass }} [{{ heading_body | replace: "|", "\|" }}]({% if include.baseurl %}{{ include.baseurl }}{% endif %}#{{ html_id }}){% if include.anchor_class %}{:.{{ include.anchor_class }}}{% endif %}{% endcapture %}
85
85
{% endfor %}
86
86
87
- {% if include.class %}
87
+ {% if include.class and include.item_class != blank %}
88
88
{% capture my_toc %}{:.{{ include.class }}}
89
89
{{ my_toc | lstrip }}{% endcapture %}
90
90
{% endif %}
You can’t perform that action at this time.
0 commit comments