Skip to content

Commit bbd6a4d

Browse files
committed
just don't have a toc for now
1 parent 99c7205 commit bbd6a4d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

_includes/toc.html

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
<!-- {% assign enable_toc = false %}
1+
{% assign enable_toc = false %}
22
{% if site.toc and page.toc %}
33
{% if page.content contains '<h2' or page.content contains '<h3' %}
44
{% assign enable_toc = true %}
55
{% endif %}
6-
{% endif %} -->
6+
{% endif %}
77

8-
<!-- {% if enable_toc %} -->
8+
{% if enable_toc %}
99
<div id="toc-wrapper" class="pl-0 pr-4 mb-5">
1010
<div class="panel-heading pl-3 pt-2 mb-2">{{- site.data.locales[include.lang].panel.toc -}}</div>
1111
<nav id="toc"></nav>
1212
</div>
13-
<div>this is just my note to myself</div>
1413

1514
<!-- toc.js will be loaded at medium priority -->
1615
<script src="{{ site.data.assets[origin].toc.js | relative_url }}"></script>
17-
<!-- {% endif %} -->
16+
{% endif %}

_layouts/page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h1 class="dynamic-title">
4040
<div id="panel-wrapper" class="col-xl-3 pl-2 text-muted">
4141
<div class="access">
4242
{% include update-list.html lang=lang %}
43-
{% include toc.html lang=lang %}
43+
<!-- TODO: get toc working -->
4444
</div>
4545

4646
{% for _include in layout.panel_includes %}

0 commit comments

Comments
 (0)