|
21 | 21 | <div class="col article-block">
|
22 | 22 | <a href="{% if article.is_remote %}{{ article.remote_url }}{% else %}{{ article.url }}{% endif %}">
|
23 | 23 | {% if article.is_remote %}
|
24 |
| - {# HeadingA11y Clash #} <h4 class="card-title article-title"> |
25 |
| - <span class="sr-only">{% trans 'Externally hosted article' %}: </span> |
26 |
| - {{ article.title|safe }} |
27 |
| - <i aria-hidden="true" class="fa fa-external-link small-icon-text"></i> |
28 |
| - </h4> |
| 24 | + {% if level == "deep" %} |
| 25 | + <h4 class="card-title article-title"> |
| 26 | + <span class="sr-only">{% trans 'Externally hosted article' %}: </span> |
| 27 | + {{ article.title|safe }} |
| 28 | + <i aria-hidden="true" class="fa fa-external-link small-icon-text"></i> |
| 29 | + </h4> |
| 30 | + {% elif level == "shallow" %} |
| 31 | + <h3 class="card-title article-title"> |
| 32 | + <span class="sr-only">{% trans 'Externally hosted article' %}: </span> |
| 33 | + {{ article.title|safe }} |
| 34 | + <i aria-hidden="true" class="fa fa-external-link small-icon-text"></i> |
| 35 | + </h3> |
| 36 | + {% else %} |
| 37 | + <h2 class="card-title article-title"> |
| 38 | + <span class="sr-only">{% trans 'Externally hosted article' %}: </span> |
| 39 | + {{ article.title|safe }} |
| 40 | + <i aria-hidden="true" class="fa fa-external-link small-icon-text"></i> |
| 41 | + </h2> |
| 42 | + {% endif %} |
29 | 43 | {% else %}
|
30 |
| - {# HeadingA11y Clash #} <h4 class="card-title article-title">{{ article.title|safe }}</h4> |
| 44 | + {% if level == "deep" %} |
| 45 | + <h4 class="card-title article-title">{{ article.title|safe }}</h4> |
| 46 | + {% elif level == "shallow" %} |
| 47 | + <h3 class="card-title article-title">{{ article.title|safe }}</h3> |
| 48 | + {% else %} |
| 49 | + <h2 class="card-title article-title">{{ article.title|safe }}</h2> |
| 50 | + {% endif %} |
31 | 51 | {% endif %}
|
32 | 52 | </a>
|
33 | 53 | <p class="card-subtitle mb-2 text-muted">{% for author in article.frozen_authors.all %}{% if forloop.last %}
|
|
0 commit comments