Sha256: e454732ca10ce1c93656e5e8abb68f74ed4432dba79181e326f20b8201b4e9ee

Contents?: true

Size: 785 Bytes

Versions: 5

Compression:

Stored size: 785 Bytes

Contents

---
layout: default
show_title: true
---

{{ content }}

<hr>

<div class="list-group">

    {% assign parent = page.url | remove:'index.html' %}
    {% for page in site.pages %}

    {% comment %}
    Iterate over the pages under the parent
    {% endcomment %}
    {% assign checkArray = page.url | split:parent %}

    {% if checkArray[0] == "" %}

    {% assign subpath = checkArray %}
    {% assign splitSubpath = subpath | split:"/" %}

    {% if splitSubpath.size == 2 %}
    <!-- This means it is a subsection and not the child of a subsection-->

    {% unless page.url contains 'html' %}

    {% include section_preview.html
    url=page.url
    title=page.title
    content=page.content
    %}

    {% endunless %}

    {% endif %}

    {% endif %}

    {% endfor %}

</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
just-the-cards-0.2.6 _layouts/sections.html
just-the-cards-0.2.5 _layouts/sections.html
just-the-cards-0.2.4 _layouts/sections.html
just-the-cards-0.2.2 _layouts/sections.html
just-the-cards-0.2.1 _layouts/sections.html