Sha256: f0ffd8c27a7fe0733523e8212180a7d60a4d8aa7b83d65c1e737fd8b9aab30fc

Contents?: true

Size: 675 Bytes

Versions: 8

Compression:

Stored size: 675 Bytes

Contents

{% assign page_url = page.url | append: "/" | replace:"//","/" %}
{% assign link_url = include.href | append: "/" | replace:"//","/" %}
{% assign page_url_array = page_url | split: "/" %}
{% assign path_to_page_url = page_url_array | pop | join: "/" | append: "/" %}
{% assign ancestry = page_url | slice: 0, link_url.size %}
{% assign active = "" %}
{% assign open   = "" %}
{% assign parent = "" %}
{% if include.kids %}
  {% assign parent = "parent" %}
{% endif %}
{% if page_url == link_url %}
  {% assign active = "active" %}
  {% assign open = "open" %}
{% elsif ancestry == link_url %}
  {% assign open = "open" %}
  {% assign parent = "proud-ancestor" %}
{% endif %}

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
asciidocsy-0.3.0 _includes/path-active.liquid
asciidocsy-0.3.0.pre.rc4 _includes/path-active.liquid
asciidocsy-0.3.0.pre.rc3 _includes/path-active.liquid
asciidocsy-0.3.0.pre.rc2 _includes/path-active.liquid
asciidocsy-0.3.0.pre.rc1 _includes/path-active.liquid
asciidocsy-jekyll-theme-0.3.0.pre.rc2 _includes/path-active.liquid
asciidocsy-jekyll-theme-0.3.0.pre.rc1 _includes/path-active.liquid
asciidocsy-jekyll-theme-0.3.0.pre.dev _includes/path-active.liquid