%PDF- %PDF-
Direktori : /www/specpages-backup/themes/dawn/layout/_macro/ |
Current File : /www/specpages-backup/themes/dawn/layout/_macro/sidebar.njk |
{% macro render(display_toc) %} <div class="toggle sidebar-toggle" role="button"> <span class="toggle-line"></span> <span class="toggle-line"></span> <span class="toggle-line"></span> </div> <aside class="sidebar"> {%- set display_toc = page.toc.enable and display_toc %} {%- if display_toc %} {%- set toc = toc(page.content, {class: 'nav', list_number: page.toc.number, max_depth: page.toc.max_depth}) %} {%- set display_toc = toc.length > 1 and display_toc %} {%- endif %} <div class="sidebar-inner {% if display_toc %}sidebar-nav-active sidebar-toc-active{% else %}sidebar-overview-active{% endif %}"> <ul class="sidebar-nav"> <li class="sidebar-nav-toc"> {{ __('sidebar.toc') }} </li> <li class="sidebar-nav-overview"> {{ __('sidebar.overview') }} </li> </ul> <div class="sidebar-panel-container"> <!--noindex--> <div class="post-toc-wrap sidebar-panel"> {%- if display_toc %} <div class="post-toc animated">{{ toc }}</div> {%- endif %} </div> <!--/noindex--> <div class="site-overview-wrap sidebar-panel"> {{ partial('_partials/sidebar/site-overview.njk', {}, {cache: theme.cache.enable}) }} {{- next_inject('sidebar') }} </div> </div> {%- if theme.back2top.enable and theme.back2top.sidebar %} <div class="back-to-top animated" role="button"> <i class="fa fa-arrow-up"></i> <span>0%</span> </div> {%- endif %} </div> </aside> <div class="sidebar-dimmer"></div> {% endmacro %}