mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-15 17:25:49 +00:00
Ledger formats: improve landing page, etc.
This commit is contained in:
16
content/_snippets/macros/page-children.md
Normal file
16
content/_snippets/macros/page-children.md
Normal file
@@ -0,0 +1,16 @@
|
||||
{% macro page_children(pg, depth, max_depth, show_blurbs) %}
|
||||
{% if pg.children %}
|
||||
{% if depth == 1 %}<ul class="children-display">{% endif %}
|
||||
{% for child in pg.children %}
|
||||
<li class="level-{{depth}}"><a href="{{child.html}}">{{child.name}}</a>
|
||||
{% if child.status == "not_enabled" %}:not_enabled:{% endif %}
|
||||
<p class="blurb child-blurb">{{child.blurb}}</p>
|
||||
</li>
|
||||
{% if child.children and depth < max_depth %}
|
||||
{{ page_children(child, depth+1, max_depth, show_blurbs) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if depth == 1 %}</ul><!--/.children-display-->{% endif %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
@@ -21,7 +21,7 @@
|
||||
[Ledger Index]: basic-data-types.html#ledger-index
|
||||
[ledger index]: basic-data-types.html#ledger-index
|
||||
[レジャーインデックス]: basic-data-types.html#レジャーインデックス
|
||||
[ledger format]: ledger-data-formats.html
|
||||
[ledger format]: ledger-object-types.html
|
||||
[レジャーフォーマット]: ledger-data-formats.html
|
||||
[Marker]: markers-and-pagination.html
|
||||
[マーカー]: markers-and-pagination.html
|
||||
|
||||
Reference in New Issue
Block a user