Sha256: a5c992064cddf3ebdcd515911c5526a42083e7e0bf3809b9838e464ac87213f3
Contents?: true
Size: 1.59 KB
Versions: 1
Compression:
Stored size: 1.59 KB
Contents
{%- include assets/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 flex-items-baseline" 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 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 -%} {% 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 class/_toctree.extend.liquid %}</li> {%- endfor -%} </ul>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-rtd-theme-2.0.0.pre.beta1 | _includes/class/_toctree.extend.liquid |