{% set index_path = (currentPath + '/index.md') if currentPath else 'index.md' %} {% set index = get_rendered_markdown(index_path) %}

{% if index.exists %} {% if index.metadata and index.metadata.date %} {% endif %} {% endif %}
{% set siblings = get_sibling_content_files(currentPath) %} {% if siblings and siblings|length > 1 %} {% set current_index = namespace(value=-1) %} {% for sibling in siblings %} {% if sibling[1] == currentPath %} 🖹 {{ sibling[0] }} {% else %} 🖹 {{ sibling[0] }} {% endif %} {% endfor %} {% endif %}
{% set siblingsfolders = get_sibling_content_folders(currentPath) %} {% if siblingsfolders and siblingsfolders|length > 1 %} {% for siblingf in siblingsfolders %} {% if siblingf[1] == currentPath %} 🗀 {{ siblingf[0] }} {% for child in get_folder_contents(siblingf[1]) %} {% if child.name == "index.md" %} ∟ 🖹 {{ child.name }} {% else %} ∟ 🖹 {{ child.name }} {% endif %} {% endfor %} {% else %} 🗀 {{ siblingf[0] }} {% endif %} {% endfor %} {% endif %}

{% if index.exists %}
{{ index.html | safe }}
{% endif %}
{% if metadata and metadata.tags %}
Tagged: {% for tag in metadata.tags %} {{ tag }}{% if not loop.last %}, {% endif %} {% endfor %}
{% endif %}