v6/site/includes/article-listing.html

27 lines
760 B
HTML
Raw Permalink Normal View History

2022-12-10 18:15:32 +00:00
<article itemscope itemtype="https://schema.org/BlogPosting">
<h2 class="article-title" itemprop="headline">
<a href="{{ post.permalink() }}" itemprop="url mainEntityOfPage">
{% match post.metadata.html_title %}
{% when Some with (html) %}
{{ html|safe }}
{% when None %}
{{ post.metadata.title }}
{% endmatch %}
</a>
</h2>
{% include "includes/article-meta.html" %}
<div class="article-content" itemprop="description">
{% match post.excerpt %}
{% when Some with (excerpt) %}
{{ excerpt|safe }}
{% when None %}
{{ post.content.html()|safe }}
{% endmatch %}
</div>
{% if post.excerpt.is_some() %}
<p class="read-more-link">
<a href="{{ post.permalink() }}">Read more...</a>
</p>
{% endif %}
</article>