{% macro build_node(node, style="", allow_hover=True) %} {% with has_children = node.get_children(show_in_menu=True).count() %}
  • {{node.title}} {{build_main_nodes(parent=node)}}
  • {% endwith %} {% endmacro %} {% macro build_main_nodes(parent=None, nodes=None) %} {% if not parent and nodes %} {% elif parent %} {% endif %} {% endmacro %} {% macro render_small_author(author, size=30, multiple=False) %} {{ author.display_name }} {% if multiple %} , {% endif %} {% endmacro%} {% macro build_nodes(nodes)%}
    {% if content %} Published in {{ content.created_at.strftime('%H:%M of %m/%d/%Y') }} by {% if content.has_multiple_authors %} {%for author in content.get_authors()|sort(attribute="display_name")%} {{render_small_author(author, size=30 / content.get_authors()|length, multiple=True)}} {% endfor %} {% else %} {{render_small_author(content.created_by)}} {%endif%} {% endif %}
    {% endmacro %}