silverstrap 

silverstrap Commit Details

Date:2013-06-13 17:11:30 (6 years 6 days ago)
Author:Nicola Fontana
Branch:bootstrap2, dev, master, master-1.0, ss3
Commit:71fe1aa943934c31a014b862bb1159e232363c87
Parents: 599e7e7c5fd8f67948834a8ffa6effd3feb6c591
Message:Including only the first level of the TOC

Nested TOC levels can become pretty unusable if the nav-list is .affix
and the list is long (such as in the case of a Gtkdoc page), so listing
only the first menu level.
Changes:
Mtemplates/Includes/AutotocContent.ss (1 diff)

File differences

templates/Includes/AutotocContent.ss
11
22
33
4
4
5
56
67
78
<aside class="span3">
<ul class="nav nav-list affix">
<li class="nav-header"><%t Silverstrap.TOC %></li>
<% include Autotoc %>
<%-- Include only the first level of the TOC --%><% loop $Autotoc.Children %>
<li><a href="#$Id.ATT">$Title</a></li><% end_loop %>
</ul>
</aside>
<div class="span9">

Archive Download the corresponding diff file