layout: blog
<article class=“content post”>
<header class="content-header"> {% if page.category %} <div class="content-meta"> {%- assign category_slug = page.category | slugify -%} {%- assign category_url = site.jekyll-archives.permalinks.category -%} <a href="{{ category_url | replace: ':name', category_slug | relative_url }}" rel="tag" > {{- page.category -}} </a> </div> {% endif %} {% if page.title != "" %} <h1 class="content-title">{{ page.title }}</h1> {% endif %} <div class="content-meta"> <a class="content-date" href="{{ page.url }}" rel="bookmark"> <time datetime="{{ page.date | date_to_xmlschema }}"> {{ page.date | date: site.steve.date_formats.post }} </time> </a> {% if page.author %} {% assign author = site.data.authors[page.author] %} {% if author.url %} <a class="content-author" href="{{ author.url }}" rel="author"> {{ author.name }} </a> {% else %} <a class="content-author" href="{{ page.author | prepend: 'https://twitter.com/' }}" rel="author" > {{ page.author }} </a> {% endif %} {% endif %} </div> </header> {% if page.image %} <figure class="content-cover"> <img src="{{ page.image.url | default: page.image }}" alt="{{ page.image.alt | default: '' }}" /> </figure> {% endif %} <div class="content-body"> {{ page.content }} </div> {% if page.tags.size > 0 %} <footer class="content-footer"> <p>{{ site.steve.post.tags }}</p> <ul class="content-tags"> {% for tag in page.tags %} <li> {%- assign tag_slug = tag | slugify -%} {%- assign tag_url = site.jekyll-archives.permalinks.tag -%} <a href="{{ tag_url | replace: ':name', tag_slug | relative_url }}" rel="tag" > {{- tag -}} </a> </li> {% endfor %} </ul> </footer> {% endif %}
</article>
{% include post/comments.html %}
{% if page.previous or page.next %}
<nav class="content-navigation"> {% if page.previous %} <a class="nav-link prev-link" href="{{ page.previous.url | relative_url }}" rel="prev" > {{ site.steve.pagination.prev_post }} <strong>{{ page.previous.title }}</strong> </a> {% endif %} {% if page.next %} <a class="nav-link next-link" href="{{ page.next.url | relative_url }}" rel="next" > {{ site.steve.pagination.next_post }} <strong>{{ page.next.title }}</strong> </a> {% endif %} </nav>
{% endif %}