Fixed missing table of contents
This commit is contained in:
parent
9ea42fa3aa
commit
9eced82e93
26
post.hbs
26
post.hbs
|
@ -23,23 +23,10 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<section class="gh-content gh-canvas">
|
<section class="gh-content gh-canvas">
|
||||||
{{!-- Adds table of contents unless instructed not to --}}
|
|
||||||
{{^has tag="#hide toc"}}
|
|
||||||
<aside class="gh-sidebar">
|
<aside class="gh-sidebar">
|
||||||
<div class="gh-toc"></div>
|
<div class="gh-toc"></div>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<script src="{{asset "js/lib/tocbot.min.js"}}"></script>
|
|
||||||
<script>
|
|
||||||
tocbot.init({
|
|
||||||
tocSelector: '.gh-toc',
|
|
||||||
contentSelector: '.gh-content',
|
|
||||||
headingSelector: 'h1, h2',
|
|
||||||
hasInnerContainers: true,
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{{/has}}
|
|
||||||
|
|
||||||
{{content}}
|
{{content}}
|
||||||
|
|
||||||
{{#unless feature_image}}
|
{{#unless feature_image}}
|
||||||
|
@ -53,7 +40,18 @@
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
{{!-- Adds table of contents unless instructed not to --}}
|
||||||
|
{{^has tag="#hide toc"}}
|
||||||
|
<script src="{{asset "js/lib/tocbot.min.js"}}"></script>
|
||||||
|
<script>
|
||||||
|
tocbot.init({
|
||||||
|
tocSelector: '.gh-toc',
|
||||||
|
contentSelector: '.gh-content',
|
||||||
|
headingSelector: 'h1, h2',
|
||||||
|
hasInnerContainers: true,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
{{/has}}
|
||||||
{{/post}}
|
{{/post}}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
Loading…
Reference in New Issue