<article class=“content post”>
<header class="content-header"> {% if post.category %} <div class="content-meta"> {%- assign category_slug = post.category | slugify -%} {%- assign category_url = site.jekyll-archives.permalinks.category -%} <a href="{{ category_url | replace: ':name', category_slug | relative_url }}" rel="tag" > {{- post.category -}} </a> </div> {% endif %} {% if post.title != "" %} <h2 class="content-title"> <a href="{{ post.url | relative_url }}" rel="bookmark">{{ post.title }}</a> </h2> {% endif %} <div class="content-meta"> <a class="content-date" href="{{ post.url | relative_url }}" rel="bookmark"> <time datetime="{{ post.date | date_to_xmlschema }}"> {{ post.date | date: site.steve.date_formats.post }} </time> </a> {% if post.author %} {% assign author = site.data.authors[post.author] %} {% if author.url %} <a class="content-author" href="{{ author.url }}" rel="author"> {{ author.name }} </a> {% else %} <a class="content-author" href="{{ post.author | prepend: 'https://twitter.com/' }}" rel="author"> {{ post.author }} </a> {% endif %} {% endif %} </div> </header> {% if post.image %} <figure class="content-cover"> <img src="{{ post.image.url | default: post.image }}" alt="{{ post.image.alt | default: '' }}" /> </figure> {% endif %} {% unless include.full_post == false %} <div class="content-body"> {{ post.content }} </div> {% endunless %}
</article>