lang attribute for non-english posts

This commit is contained in:
rimu 2024-08-28 19:25:05 +12:00
parent 22f21fb4a1
commit 277b21b8a0

View file

@ -142,7 +142,7 @@
width="{{ post.image.thumbnail_width }}" height="{{ post.image.thumbnail_height }}" loading="lazy" /></a>
{% endif -%}
{% endif -%}
<div class="post_body">
<div class="post_body"{% if post.language_id and post.language.code != 'en' %} lang="{{ post.language.code }}"{% endif %}>
{{ post.body_html|community_links|safe if post.body_html else '' }}
{% if archive_link -%}
<p><a href="{{ archive_link }}" rel="nofollow ucg noindex" target="_blank">{{ _('Archive.ph link') }} <span class="fe fe-external"></span></a></p>