boxes/_includes/sidebar.html
Thomas Jensen c049484e4c
Update website design
- Updated frameworks for better browser support
- Improved responsive design
- Versioned documentation
- Better social media support via the Jekyll SEO plugin
- New looks, fwiw
- Start page has some more relevant info
- Documentation sorted to be more easily accessible
- Internally upgraded from plain CSS to SASS
2021-05-26 21:13:21 +02:00

31 lines
1.2 KiB
HTML

{%- comment -%}
Outputs the sidebar aka. left-hand navigation.
{%- endcomment -%}
<div class="sidebar">
{% for groupitem in site.data.navigation.toc %}
<div class="row">
<div class="sidebar-heading mr-lg-5">{{ groupitem.group }}</div>
<ul>
{%- for entry in groupitem.subfolderitems -%}
{%- unless entry.divider -%}
{%- assign urlstart_editors = page.url | slice: 0, 9 -%}
{%- assign urlstart_protocol = entry.url | slice: 0, 4 -%}
{%- if page.bxVersion -%}
{%- assign pgurl = page.url | remove_first: '/' | remove_first: page.bxVersion -%}
{%- elsif urlstart_editors == "/editors-" -%}
{%- assign pgurl = "/editors.html" -%}
{%- else %}
{%- assign pgurl = page.url -%}
{%- endif %}
<li{% if pgurl == entry.url %} class="current" {%- endif
-%}><a href="{{- entry.url | relative_url -}}">{{ entry.title }}</a></li>
{%- endunless -%}
{%- endfor %}
</ul>
</div>
{%- endfor %}
</div>