v6/site_test/layout/tutorial_post.html

28 lines
771 B
HTML

{% extends "default" %}
{% block titlevariable %}
{% set title = post.metadata.title ~ " | " ~ post.series_name %}
{% endblock %}
{% block content -%}
<article>
<h1 class="headline">{{ post.metadata.title }}</h1>
<p class="article-meta">
Published on
<time datetime="{{ post.metadata.date | iso_datetime }}">
{{ post.metadata.date | pretty_date }},
</time>
in
<a href="/tutorials/{{ post.series_slug }}/">{{ post.series_name }}</a>.
<span title="{{ post.word_count }} word{% if post.word_count != 1 %}s{% endif %}">
{{ post.word_count | reading_time }} minute read.
</span>
</p>
<div class="body-content">
{{ post.content }}
</div>
</article>
{%- endblock %}