Sha256: 2fbe4fc639a5369d90a4529754fd21ae6ad66d01a9f81334b34a533ecc75aeb9
Contents?: true
Size: 1.66 KB
Versions: 2
Compression:
Stored size: 1.66 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 %} <a class="caption d-block text-uppercase no-wrap px-2 py-0" href="{{ dir.url | relative_url }}"> {{ dir.title | default: dir.url }} </a> {%- 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 extend/toctree.liquid %}</li> {%- endfor -%} </ul>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-rtd-theme-2.0.2 | _includes/extend/toctree.liquid |
jekyll-rtd-theme-2.0.1 | _includes/extend/toctree.liquid |