safing-web/_includes/thumbnail_blog.html
2021-12-13 08:23:47 +01:00

36 lines
No EOL
1.4 KiB
HTML

<a class="card-blog" href="{{ post.url }}">
<div class="card-blog-thumbnail">
{% if post.custom_thumbnail_name == null %}
<img src="{{ site.img_url }}thumbnails/blog/placeholder.png">
{% else %}
<img src="{{ site.img_url }}thumbnails/blog/{{ post.custom_thumbnail_name }}.png">
{% endif %}
{% if post.progress_update == true %}
<span class="counter">#{{ post.title | slice: 2, 2 }}</span>
{% endif %}
{% if post.portmaster_update == true %}
<span class="box-icon">
<i class="icon-play text-xl"></i>
</span>
{% endif %}
</div>
<div class="card-blog-content">
<div class="content-wrapper">
<span class="w-full">
{% if include.pre_header %}
{{ include.pre_header }} -
{% endif %}
{{ post.date | date: "%-d. %b %Y" }}
</span>
<div class="circular-profile" tooltip="{{ post.author | capitalize }}">
<img src="{{ site.img_url }}profiles/{{ post.author | downcase }}.png" alt="{{ post.author | capitalize }}">
</div>
</div>
{% if post.progress_update == true %}
{% assign title_length = post.title | size %}
<span>{{ post.title | slice: 7, title_length }} - #{{ post.title | slice: 2, 2 }}</span>
{% else %}
<span>{{ post.title }}</span>
{% endif %}
</div>
</a>