Sha256: 2edb9a4634772379b96af67c5f673242253cb613e2051f4c98ece3f296088a48

Contents?: true

Size: 1.1 KB

Versions: 3

Compression:

Stored size: 1.1 KB

Contents

{%- include reset/workspace.liquid %}

{%- assign dir = html_pages | where: "url", workspace | first -%}
{%- if workspace_level == 2 %}
    <p class="caption"><span class="caption-text">{{ dir.title | default: dir.url }}</span></p>
{%- else %}
    <a class="reference internal" href="{{ site.baseurl | append: dir.url }}">{{ dir.title | default: dir.url }}</a>
{%- endif -%}

<ul>
    {%- for item in workspace_files -%}
        {%- assign level = item.dir | append: "temp/" | split: "/" | size | minus: 2 -%}
        {%- capture current -%}
            {%- if page.url == item.url %}current{% endif -%}
        {%- endcapture %}
        <li class="toctree-l{{ level }} {{ current }}">
            <a class="reference internal {{ current }}" href="{{ site.baseurl | append: item.url }}">
                {{ item.title | default: item.url }}
            </a>
        </li>
    {%- endfor -%}
    {%- for workspace in workspace_dirs -%}
        {%- assign level = workspace | append: "temp/" | split: "/" | size | minus: 3 %}
        <li class="toctree-l{{ level }}">{% include toctree_ln.liquid %}</li>
    {%- endfor -%}
</ul>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-rtd-theme-0.1.4 _includes/toctree_ln.liquid
jekyll-rtd-theme-0.1.2 _includes/toctree_ln.liquid
jekyll-rtd-theme-0.1.1 _includes/toctree_ln.liquid