Sha256: 25d54cba4f406b3db87ea2e6c9e95da8563d5c85df15d62940dc0baa0ee91436

Contents?: true

Size: 537 Bytes

Versions: 3

Compression:

Stored size: 537 Bytes

Contents

{%- assign tocNodes = hierarchy | where_exp:"item", "item.name == page.id" | map: "items" | first -%}
{%- if tocNodes.size > 0 -%}
  <hr>
  <h2 class="text-delta">Table of contents</h2>
  {%- assign sorted_nodes = tocNodes | sort_natural:"title" -%}
  <ul>
    {%- for tocNode in sorted_nodes -%}
      <li>
        <a href="{{ tocNode.url | absolute_url }}">{{ tocNode.title }}</a>
        {%- if tocNode.summary -%}
          -
          {{ tocNode.summary }}
        {%- endif -%}
      </li>
    {%- endfor -%}
  </ul>
{%- endif -%}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dendron-jekyll-0.3.9 _includes/toc.html
dendron-jekyll-0.3.8 _includes/toc.html
dendron-jekyll-0.3.7 _includes/toc.html