datat.fi/_includes/entry.html

30 lines
1.1 KiB
HTML
Raw Normal View History

2017-03-07 23:12:17 +02:00
{% if post.id %}
2017-03-08 23:07:06 +02:00
{% assign title = post.title | markdownify | strip_html %}
2017-03-07 23:12:17 +02:00
{% else %}
{% assign title = post.title %}
{% endif %}
<article class="entry">
<header class="entry-header">
<h3 class="entry-title">
<a href="{{ post.url | relative_url }}" rel="bookmark">{{ title }}</a>
</h3>
</header>
2017-03-17 15:36:47 +02:00
<footer class="entry-meta">
<ul>
{% if post.date %}
<li><span class="icon">{% include icon-calendar.svg %}</span><time class="entry-time" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %-d, %Y" }}</time></li>
{% endif %}
{% if post.read_time %}
<li><span class="icon">{% include icon-stopwatch.svg %}</span>{% capture read_time %}{% include read-time.html %}{% endcapture %}{{ read_time | strip }}</li>
{% endif %}
</ul>
</footer>
2017-03-07 23:12:17 +02:00
<div class="entry-excerpt">
{% if post.excerpt %}
{{ post.excerpt | markdownify }}
<p><a href="{{ post.url | relative_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>
2017-03-07 23:12:17 +02:00
{% endif %}
</div>
2017-03-17 15:36:47 +02:00
</article>