Various searches and replaces. Movement of TOC association to recursive loop function tocsearch.html
This commit is contained in:
@@ -1 +1,2 @@
|
||||
<h2>Table of contents</h2>
|
||||
<div id="pageTOC" style="padding-top:15px; font-weight: bold; width: auto;"></div>
|
||||
@@ -0,0 +1 @@
|
||||
{% for item in tree %}{% if item.section %}{% assign tree = item.section %}{% include tocsearch.html %}{% else %}{% if item.path == page.url %}{% assign foundTOC = thistoc %}{% break %}{% endif %}{% endif %}{% endfor %}
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
<div class="container">{% assign tree = item.section %}{% include tree.html %}
|
||||
</div>
|
||||
</div>{% else %}
|
||||
<a class="item" data-title="{{ item.title }}" href="{{ item.path }}" ></a>{% endif %}{% endfor %}
|
||||
<a class="item" data-title="{{ item.title }}" href="{{ item.path }}" ></a>{% endif %}{% endfor %}
|
||||
Reference in New Issue
Block a user