All checks were successful
Build Jekyll weblog / build (push) Successful in 2s
35 lines
1.3 KiB
HTML
35 lines
1.3 KiB
HTML
<a href="{{ post.url | prepend: site.baseurl }}" class="post-list-item">
|
|
|
|
<!-- This thumbnail image is lazily loaded, that's why no 'src' is provided. -->
|
|
<div class="post-thumbnail">
|
|
<img defpath="{{ post.thumbnail | prepend: '/static/images/thumbnails/' | prepend: site.baseurl | append: '.jpg' }}" alt="{{ post.title | strip_html }}" title="{{ post.title | strip_html }}" class="post-thumbnail-image">
|
|
</div>
|
|
|
|
<!-- These are the category tags displayed beside each post thumbnail in the index. -->
|
|
<div class="post-list-item-text">
|
|
<h2>{{ post.title }}</h2>
|
|
{% assign need_br = true %}
|
|
{% capture my_categories %}
|
|
{% for category in post.categories %}
|
|
{{ category }}
|
|
{% if forloop.last == false %}
|
|
{% if forloop.index >= 3 %}
|
|
</span>
|
|
<br />
|
|
<span class="post-subheading">
|
|
{% assign need_br = false %}
|
|
{% endif %}
|
|
,
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endcapture %}
|
|
<span class="post-subheading">{{ my_categories | strip_newlines | replace: ',', ' • ' }}</span>
|
|
{% if need_br %}
|
|
<br />
|
|
{% else %}
|
|
<span class="post-subheading"> | </span>
|
|
{% endif %}
|
|
<span class="post-subheading">{{ post.date | date: "%b %-d, %Y" }}</span>
|
|
</div>
|
|
</a>
|