Sha256: 115a0a9dafea779ead0c06dc2b103e857c2b73e34e604934372b34dfb46897f9

Contents?: true

Size: 729 Bytes

Versions: 3

Compression:

Stored size: 729 Bytes

Contents

<!-- from: https://jekyllrb.com/tutorials/navigation/#scenario-9-nested-tree-navigation-with-recursion -->
<ul>
  {% for child in include.children %}
    {% assign doc = site.documents | where: "url", child.url | first %}
    <li>
      <span>{% include img/bullet-branch.svg %}</span>
      {% if doc %}
        <a class="wiki-link" href="{{ doc.url }}">{{ doc.title }}</a>
      {% else %}
        <span class="text--small text--no-point">{{ child.text }}</span>
      {% endif %}
      {% if child.children.size > 0 %}
        {% assign child_nodes = page.nodes | where_exp: "node", "child.children contains node.text" %}
        {% include branch.html children=child_nodes %}
      {% endif %}
    </li>
  {% endfor %}
</ul>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
jekyll-garden-0.0.12 _includes/branch.html
jekyll-wikibonsai-0.0.11 _includes/branch.html
jekyll-wikibonsai-0.0.10 _includes/branch.html