Sha256: 478c3acb0941d67c00b8d2be7a2d75a3ac012fcf81a08fe4a532e6b0defc1c1e

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

{% assign n_cards = 0 %}

{% assign section_parent = include.url | remove:'index.html' %}

{% for page in site.pages %}

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

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

{% capture n_cards %}{{ n_cards | plus:1 }}{% endcapture %}

{% endif %}

{% endfor %}

{{ n_cards }}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
just-the-cards-0.2.6 _includes/count_children.html
just-the-cards-0.2.5 _includes/count_children.html
just-the-cards-0.2.4 _includes/count_children.html
just-the-cards-0.2.2 _includes/count_children.html
just-the-cards-0.2.1 _includes/count_children.html