Sha256: cbdec22f00ebee9de03d21291ef6f1cd7a84ed499b3616b8ff3387614ebdb53c
Contents?: true
Size: 733 Bytes
Versions: 25
Compression:
Stored size: 733 Bytes
Contents
{% if include.active_for_nested %} {% assign first_component_of_current_url = page.url | split: '/' | slice: 0, 2 | join: '/' | append: '/' %} {% assign first_component_of_link_url = include.url | split: '/' | slice: 0, 2 | join: '/' | append: '/' %} {% if first_component_of_current_url == first_component_of_link_url %} {% assign active_nested = true %} {% else %} {% assign active_nested = false %} {% endif %} {% endif %} {% if active_nested or page.url == include.url %} <a class="active {{ include.htmlclass }}" href="{{ include.url }}">{{ include.title }}</a> {% else %} <a class="{{ include.htmlclass }}" href="{{ include.url }}">{{ include.title }}</a> {% endif %} {% assign active_nested = false %}
Version data entries
25 entries across 25 versions & 1 rubygems