<?xml version="1.0"?>
<t t-name="website_blog.post_teaser">
    <t t-cache="blog_post,str(active_tag_ids)">
    <a t-attf-href="/blog/#{slug(blog_post.blog_id)}/#{slug(blog_post)}" class="text-reset text-decoration-none">
        <div t-if="opt_blog_list_view" t-field="blog_post.teaser" class="mt-2 o_wblog_read_text"/>
        <div t-else="" t-field="blog_post.teaser" t-attf-class="mt-2 #{opt_blog_readable and 'o_wblog_normalize_font'}"/>
    </a>

    <!-- Tags -->
    <div t-if="len(blog_post.tag_ids)" class="o_wblog_post_short_tag_section d-flex align-items-center flex-wrap pt-2">
        <t t-foreach="blog_post.tag_ids" t-as="one_tag">
            <a t-attf-href="#{blog_url(tag=tags_list(active_tag_ids, one_tag.id))}" t-attf-class="badge mb-2 me-1 text-truncate o_tag o_color_#{one_tag.color} post_link" t-att-rel="len(active_tag_ids) and 'nofollow'" t-esc="one_tag.name"/>
        </t>
    </div>
    </t>
</t>


