<div id="kb-sidenav-published-heading">
    {% set authors = references.resource_references(resource)['author'] %}

    {% if resource.is_published %}
        <p class="menu-label">
            Published
        </p>
        <ul class="menu-list">
            <li>
                Published on
                {{ resource.props.published.strftime('%Y-%m-%d') }}
                at
                {{ resource.props.published.strftime('%H:%M') }}
                {% if authors %}
                    by:
                    {% for author in authors %}
                        <a href="{{ pathto(author.docname) }}">
                            <figure class="image is-rounded is-24x24"
                                    style="display: inline-block; margin: 0.5rem">
                                <img src="{{ pathto(author.headshot_thumbnail('icon_24'), 1) }}">
                            </figure>
                            <span
                                    style="display: inline-block; vertical-align: super">{{ author.title }}</span>
                        </a>
                    {% endfor %}
                {% endif %}
            </li>
        </ul>
    {% else %}
        <p class="menu-label">
            Draft
        </p>
        <ul class="menu-list">
            <li>
                <a href="#">
                    This article does not have a
                    current published date.
                </a>
            </li>
            te
        </ul>
    {% endif %}
</div>