{% import "Toucan/macros/master.html" as master with context %}
{% import "Toucan/Plugin/Publisher/Page/macros.html" as publisher with context %}
{% include "Toucan/Plugin/Publisher/Page/_include.html" %}

<div class="Publisher-Page">
<!-- Page Header -->
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                    <div class="post-header">
                        <h1>{{ publisher.title(post) }}</h1>

                        {% if post_show_byline %}
                            <span class="meta">
                                Posted by {{ publisher.author_with_link(post) }} on {{  publisher.published_date(post) }}
                            </span>
                        {% endif %}
                    </div>
                </div>
            </div>
        </div>

{% if post.featured_media_top %}
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                    <div class="featured-top">
                        {{ publisher.top_media(post) }}
                    </div>
                </div>
            </div>
        </div>
{% endif %}


<!-- Post Content -->
<article>
    <div class="container">

        {% if "show_sharing_buttons" in post.options.social %}
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                    <div class="pull-right">
                        {{ master.share_buttons() }}
                    </div>
                </div>
            </div>
        {% endif %}

        <div class="row">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                <div class="post-content">
                    {{ publisher.content(post) }}
                </div>
            </div>
        </div>
    </div>
</article>
</div>
