mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-02-02 02:49:14 +01:00
c049484e4c
- 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
31 lines
1.2 KiB
HTML
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>
|