Sha256: 5dd804927525072738b6c560780415e0d725b62f418ac04592e3fab9f2cc1120

Contents?: true

Size: 981 Bytes

Versions: 2

Compression:

Stored size: 981 Bytes

Contents

{%- include reset/workdir.liquid %}

{% comment %} list the root files {% endcomment %}
<ul>
    {%- for item in workdir_files -%}
        {%- assign level = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size -%}
        {%- capture current -%}
            {%- if page.url == item.url %}current{% endif -%}
        {%- endcapture %}
        <li class="toc level-{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
            <a class="d-flex flex-items-baseline {{ current }}" href="{{ item.url | relative_url }}">
                {%- if item.sort -%}
                    {{ item.sort }}. {{ item.title | default: item.url }}
                {%- else -%}
                    {{ item.title | default: item.url }}
                {%- endif -%}
            </a>
        </li>
    {%- endfor %}
</ul>

{% comment %} list the root dirs {% endcomment %}
{%- for workdir in workdir_dirs %}{% include extend/toctree.liquid %}{% endfor -%}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-rtd-theme-2.0.2 _includes/class/_toctree.liquid
jekyll-rtd-theme-2.0.1 _includes/class/_toctree.liquid