v6/site/includes/article-meta.html

28 lines
807 B
HTML

<p class="article-meta">
<span itemprop="author" itemscope="" itemtype="https://schema.org/Person">
<meta itemprop="name" content="Shadowfacts">
</span>
on
<span>
<time itemprop="datePublished" datetime="{{ post.metadata.date|iso_datetime }}" title="{{ post.metadata.date|pretty_datetime }}">
{{ post.metadata.date|pretty_date }}
</time>
</span>
{% match post.metadata.tags %}
{% when Some with (tags) %}
in
{% for tag in tags %}
<span itemprop="articleSection">
<a href="/{{ tag.slug }}/">{{ tag.name }}</a>{% if !loop.last %},{% endif %}
</span>
{% endfor %}
{% when None %}
{% endmatch %}
{% match post.word_count %}
{% when Some with (wc) %}
<span title="{{ wc }} words">{{ wc|reading_time }} min read</span>
{% when None %}
{% endmatch %}
</p>