Files
xrpl-dev-portal/content/_snippets/macros/page-children.md
2020-10-29 01:32:57 -07:00

595 B

{% macro page_children(pg, depth, max_depth, show_blurbs) %} {% if pg.children %} {% if depth == 1 %}

    {% endif %} {% for child in pg.children %}

  • {{child.name}} {% if child.status == "not_enabled" %}:not_enabled:{% endif %}

    {{child.blurb}}

  • {% if child.children and depth < max_depth %} {{ page_children(child, depth+1, max_depth, show_blurbs) }} {% endif %} {% endfor %}

    {% if depth == 1 %}

{% endif %} {% endif %} {% endmacro %}