| {% include 'variables' %}

.jumbotron
    section.container
        .row
            article.col-md-10.reference
                for section, anchor in docs.reference
                    h2(id= anchor)= section.title
                    != partial('sections/' + anchor)

                    for subsection, subanchor in section.sections
                        h3(id= anchor + '-' + subanchor)= subsection.title
                        != partial('sections/' + anchor + '/' + subanchor)

            aside.col-md-2.hidden-sm.hidden-xs
                .aside
                    nav#nav(data-spy="affix", data-offset-top="102")
                        ul.nav.nav-docs
                            for section, anchor in docs.reference
                                li
                                    a(href= '#' + anchor)= section.title

                                    ul.nav
                                        for subsection, subanchor in section.sections
                                            li
                                                a(href= '#' + anchor + '-' + subanchor)= subsection.nav || subsection.title
