{% if post.is_published %}
    <small>
        By <a href="{{ post.author.profile.url }}">{{ post.author.first_name }} {{ post.author.last_name }}</a>,
        on {{ post.published_at | date('d-m-Y') }}
        {% if post.updated_at > post.published_at %}
            <br>Last updated {{ post.updated_at | date('d-m-Y') }}
        {% endif %}

        {### INFO FOR MULTI-PAGE POSTS ###}
        {% if post.pages | length > 1 %}
            <p>Page {{ __SELF__.getRequestedPage }} of {{ post.pages | length }}</p>
        {% endif %}
    </small>
{% else %}
    <div class="alert alert-warning alert-dismissible fade show" role="alert">
        This <strong>post preview</strong> is only visible to creators and editors.
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
{% endif %}