<div id="post_file_bar">
    <menu id="post_file_titles">
        <li>
            {{ post.post_metadata.title }}
        </li>
    </menu>
    <menu id="post_file_path">
        {% set split_post = post.post_path |split('/') %}
        {% for i in range(0, split_post|length - 1) %}
            <li>
                {% if i != 0 %}
                    >
                {% endif %}
                {% if i != 0 %}
                    <a href="{{split_post|slice(0,i+1)|join('/')}}">
                        {{ split_post[i] }}
                    </a>
                {% else %}
                    <a href="/">root</a>
                {% endif %}
            </li>
        {% endfor %}


        <li style="margin-left: auto;">
            <a href="/raw{{post.post_path}}">raw</a>
            <a href="/api/posts{{post.post_path}}">api</a>
        </li>
    </menu>
</div>