Sha256: a45e61faba3d890ec047cbb499bb9ae52b72fc1c6c4323169f4407128c7b52c8
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 KB
Contents
{%- include reset/workdir.liquid %} {% comment %} display the directory name {% endcomment %} {%- assign dir = site_pages | where: "url", workdir | first -%} {%- if workdir_level == 2 %} {% comment %} display the root sub-directory as "p.caption" {% endcomment %} <p class="caption text-uppercase no-wrap px-2 mb-0">{{ dir.title | default: dir.url }}</p> {%- else %} <a class="d-flex" href="{{ dir.url | relative_url }}">{{ dir.title | default: dir.url }}</a> {%- endif -%} <ul> {% comment %} list file {% endcomment %} {%- for item in workdir_files -%} {%- assign level = item.dir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 1 -%} {%- 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 {{ 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 -%} {% comment %} list dirs {% endcomment %} {%- for workdir in workdir_dirs -%} {%- assign level = workdir | append: "temp" | replace_first: "/", "" | split: "/" | size | minus: 2 %} <li class="toc level-{{ level }}">{% include extend/toctree.liquid %}</li> {%- endfor -%} </ul>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-rtd-theme-2.0.0.pre.beta | _includes/extend/toctree.liquid |