Sha256: f0416f02c0a1176d83fb5e6b94e634be206c8ded6af52ec305bbf046207e5c12

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

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 -%}
        {%- if site_lang != lang -%}
            {%- assign level = level | minus: 1 -%}
        {%- endif -%}
        {%- capture current -%}
            {%- if page.url == item.url %}current{% endif -%}
        {%- endcapture %}
        <li class="toctree-l{{ level }} {{ current }}" data-sort="{{ item.sort }}" data-level="{{ level }}">
            <a class="reference internal {{ current }}" href="{{ item.url | relative_url }}">
                {%- if item.sort and site.show_sorted != false -%}
                    {{ 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

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-rtd-theme-1.1.7 _includes/toctree.liquid
jekyll-rtd-theme-1.1.6 _includes/toctree.liquid
jekyll-rtd-theme-1.1.5 _includes/toctree.liquid