$template = that.$summary.find('li:first-child');
that.$content.each(function(idx) {
- $(this).find('h2').each(function(idx) {
+ $(this).find('h2:not(.page-box__title)').each(function(idx) {
var $element = $(this),
$template_clone = $template.clone();
</li>
{% page_menu page %}
{% endif %}
+ {% if page.is_current_or_ascendant and not page.has_children_in_menu %}
+ <ul class="nav-tree" data-summary>
+ {% include "pages/menus/current_tree_summary.html" %}
+ </ul>
+ {% endif %}
{% endfor %}
{% endif %}
{% if branch_level == 2 %}