17 lines
674 B
HTML

{% macro title(page) %}
<header class="post__header">
<h1 class="post__title">
<a href="{{ page.permalink }}">{{ page.title }}</a>
</h1>
<div class="post__stats">{{ page.word_count }} words | {{ page.reading_time }} minutes</div>
<div class="post__meta">
<span class="post__time">{{ page.date | date(format="%F") }}</span>
{% if page.category %}
<div class="post__category">
<a href="{{ get_taxonomy_url(kind="category", name=page.category) }}">{{ page.category }}</a>
</div>
{% endif %}
</div>
</header>
{% endmacro title %}