mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 11:51:27 -08:00
19 lines
1 KiB
HTML
19 lines
1 KiB
HTML
<div class="col post_teaser_body">
|
|
{% if post.image_id -%}
|
|
<div class="col_thumbnail thumbnail{{ ' lbw' if low_bandwidth }}" aria-hidden="true">
|
|
{% if low_bandwidth -%}
|
|
<a href="{{ post.url }}" rel="nofollow ugc" target="_blank" aria-label="{{ _('Follow link') }}"><span class="fe fe-external"></span></a>
|
|
{% else -%}
|
|
<a href="{{ post.url }}" rel="nofollow ugc" target="_blank" aria-label="{{ _('Read article') }}"><span class="fe fe-external"></span><img src="{{ post.image.thumbnail_url() }}"
|
|
alt="{{ post.image.alt_text if post.image.alt_text else '' }}" loading="lazy" class="{{ ' blur' if blur_content }}" /></a>
|
|
{% endif -%}
|
|
</div>
|
|
{% endif -%}
|
|
{% include "post/post_teaser/_title.html" %}
|
|
{% if post.body_html -%}
|
|
<div class="post_teaser_link_preview small post_teaser_clickable">
|
|
{{ first_paragraph(post.body_html) | safe }}
|
|
</div>
|
|
{% endif -%}
|
|
{% include "post/post_teaser/_utilities_bar.html" %}
|
|
</div>
|