forked from cs107e/cs107e.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbody.html
26 lines (23 loc) · 769 Bytes
/
body.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% if include.toc == true %}
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12" id="main_for_toc">
{{ content }}
</div>
<div class="toc-column col-lg-2 col-md-2 col-sm-2 hidden-xs">
<div id="toc" class="toc" data-spy="affix" data-offset-top="0"></div>
</div>
</div>
<script src="/_assets/tocbot.min.js"></script>
<link rel="stylesheet" href="/_assets/tocbot.css">
<script>
tocbot.init({
// Where to render the table of contents.
tocSelector: '#toc',
// Where to grab the headings to build the table of contents.
contentSelector: '#main_for_toc',
// Which headings to grab inside of the contentSelector element.
headingSelector: 'h2, h3, h4',
});
</script>
{% else %}
{{ content }}
{% endif %}