--- layout: body --- <div class="inner outer"> <div class="guides-content"> {% assign root_folder = site.data.reference_sections.root_folder | append: 'stripe/' %} {% include guides_menu.html page=page site=site sections=site.data.reference_sections.sections root_folder=root_folder %} <article class="post type-guides"> <div class="post-inside"> <header class="post-header"> <h1 class="post-title line-left">{{ page.title }}</h1> </header> <!-- .post-header --> <div class="post-content"> {{ content }} {% assign root_page_path = root_folder | append: 'index.md' %} {% assign current_page_path = '/' | append: page.path %} {% if root_page_path != current_page_path %} {% assign child_pages_path = '/' | append: page.rel_dir %} {% assign child_pages = child_pages_path | get_pages | where_exp: "item", "item.basename != 'index.md'" | sort: 'weight' %} {% assign child_count = child_pages | size %} {% if child_count > 0 %} {% assign has_children = true %}{% else %} {% assign has_children = false %}{% endif %} {% assign has_children_is_not_empty = has_children | is_not_empty %} {% if has_children_is_not_empty %} <hr /> <div>Related articles:</div><br /> <ul class="guides-section-items"> {% for child_page in child_pages %} <li class="guides-section-item"><a href="{{ child_page.url | relative_url }}" class="guides-item-link">{{ child_page.title }}<span class="icon-angle-right" aria-hidden="true"></span></a></li> {% endfor %} </ul> <!-- .guides-section-pages --> {% endif %} {% endif %} </div> <!-- .post-content --> </div> <!-- .post-inside --> </article> <!-- .post --> <nav id="page-nav" class="page-nav"> <div id="page-nav-inside" class="page-nav-inside sticky"> <h2 class="page-nav-title">Jump to Section</h2> </div> <!-- .page-nav-inside --> </nav> <!-- .page-nav --> </div> <!-- .guides-content --> </div> <!-- .inner-->