uses article element instead of div for statuses

This commit is contained in:
Mouse Reeve 2021-01-06 20:05:28 -08:00
parent b1d4b75926
commit b5ba97c385

View file

@ -2,7 +2,7 @@
{% load humanize %} {% load humanize %}
{% if not status.deleted %} {% if not status.deleted %}
<div class="card"> <article class="card">
<header class="card-header"> <header class="card-header">
<div class="card-header-title has-background-white-ter"> <div class="card-header-title has-background-white-ter">
<div class="columns"> <div class="columns">
@ -13,9 +13,9 @@
</div> </div>
</header> </header>
<div class="card-content"> <section class="card-content">
{% include 'snippets/status_content.html' with status=status %} {% include 'snippets/status_content.html' with status=status %}
</div> </section>
<footer> <footer>
<div class="card-footer has-background-white-bis"> <div class="card-footer has-background-white-bis">
@ -95,9 +95,9 @@
</div> </div>
{% endif %} {% endif %}
</footer> </footer>
</div> </article>
{% else %} {% else %}
<div class="card"> <article class="card">
<header class="card-header"> <header class="card-header">
<p> <p>
{% include 'snippets/avatar.html' with user=status.user %} {% include 'snippets/avatar.html' with user=status.user %}
@ -105,5 +105,5 @@
deleted this status deleted this status
</p> </p>
</header> </header>
</div> </article>
{% endif %} {% endif %}