datat.fi/_includes/entry.html

31 lines
999 B
HTML

{% if post.id %} {% assign title = post.title | markdownify | strip_html %} {%
else %} {% assign title = post.title %} {% endif %} {% assign url =
post.external_url | post.url | relative_url %}
<article class="entry">
<header class="entry-header">
<h3 class="entry-title">
<a href="{{ url }}" rel="bookmark">{{ title }}</a>
</h3>
{% if post.image.thumbnail %} {% assign entry_image = post.image.thumbnail |
relative_url | escape %}
<a href="{{ url }}">
<img class="entry-image u-photo" src="{{ entry_image }}" zalt="" />
</a>
{% endif %}
</header>
<div class="entry-excerpt">
{% if post.excerpt and page.show_excerpts != false %} {{ post.excerpt |
markdownify }}
<p>
<a href="{{ url }}" class="more-link"
>{{ site.data.theme.t.read_more | default: 'Read More' }}
<span class="icon icon--arrow-right"
>{% include icon-arrow-right.svg %}</span
></a
>
</p>
{% endif %}
</div>
</article>