Skip to content

Commit 72580d9

Browse files
committed
a11y: #4220 use uuid tag instead of counter tag
1 parent b0deef1 commit 72580d9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/themes/OLH/templates/journal/homepage_elements/article_list_item.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{% load static %}
22
{% load i18n %}
33
{% load settings %}
4-
{% load counter %}
4+
{% load uuid %}
55

66
{% setting_var request.journal 'disable_article_large_image' as disable_image %}
77

8-
{% get_next_id "item" as item_id %}
8+
{% get_uuid4 as item_id %}
99

1010
<div class="olh-banner">
1111
<a href="{% if article.is_remote %}{{ article.remote_url }}{% else %}{{ article.url }}{% endif %}"

src/themes/OLH/templates/journal/homepage_elements/featured.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% load static %}
22
{% load i18n %}
3-
{% load counter %}
3+
{% load uuid %}
44

5-
{% get_next_id "featured" as featured_title %}
5+
{% get_uuid4 as featured_title %}
66
<section aria-labelledby="{{ featured_title }}">
77
<div class="row column text-center">
88
<h2 class="title" id="{{ featured_title }}">{% trans 'Featured Articles' %}</h2>

src/themes/OLH/templates/journal/homepage_elements/popular.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% load static %}
22
{% load i18n %}
3-
{% load counter %}
3+
{% load uuid %}
44

5-
{% get_next_id "popular" as popular_title %}
5+
{% get_uuid4 as popular_title %}
66
<section aria-labelledby="{{ popular_title }}">
77
<div class="row column text-center">
88
<h2 id="{{ popular_title }}" class="title">{% trans 'Most Popular Articles' %}</h2>

0 commit comments

Comments
 (0)