src/templates/blog-post.html.twig

Summary

Maintainability
Test Coverage
<ul class="breadcrumb">
{% for name, href in breadcrumbs %}
    {% if loop.last %}
        <li class="active">&nbsp;</li>
    {% else %}
        <li><a href="{{ href }}">{{ name }}</a></li>
    {% endif %}
{% endfor %}
</ul>

<article itemscope itemtype="http://schema.org/Article">

    <div class="page-header"><h1 itemprop="name">{{ post.title }}</h1></div>
    
    <p>
        Published: <a itemprop="datePublished" href="{{ post.archive }}">{{ post.published|date('F j, Y') }}</a>
        {% if post.author %}
            by <a itemprop="author" href="{{ post.author.url }}">{{ post.author.name }}</a>
        {% endif %}
    </p>
    
    <div itemprop="articleBody" style="padding-bottom:40px;">{{ post.content }}</div>
    
    {% for tag in post.tags %}
        {% if loop.first %}
            <p>Tagged:
        {% endif %}
        
        &nbsp;<a itemprop="keywords" href="{{ tag.url }}">{{ tag.name }}</a>
        
        {% if loop.last %}
            </p>
        {% endif %}
    {% endfor %}
    
</article>

{{ pagination.pager(post.previous, post.next) }}