{%- macro summarize(node) -%} {# The label class is added to style the combination of item + caption in styles.css #} {%- set clean_item = node.item|default('Container')|string -%} {%- if clean_item|is_hidden -%} {%- if node.caption -%} {{node.caption}} {%- endif -%} {%- else -%} {{clean_item}} {%- if node.caption -%} {{node.caption}} {%- endif -%} {%- endif -%} {%- endmacro -%} {%- macro create_branch(node) -%} {{ summarize(node)}} {%- if node.content -%} {{node.content|trim|safe|md_to_html }} {# Needs to be safe since some unit content may have html #} {%- endif -%} {%- endmacro -%} {%- macro create_branches(units) -%} {%- endmacro -%} {%- macro connect_breadcrumbs(nodes) -%}

{% for node in nodes -%} {{ node|crumb }} {%- endfor %}

{%- endmacro -%}