Skip to content

Commit

Permalink
Add alt attribute to nav-items
Browse files Browse the repository at this point in the history
- Depending on "Open in a new tab" option
  • Loading branch information
dantovbein authored and comzeradd committed May 20, 2024
1 parent f1791c5 commit ab6b081
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions templates/burger-menu-items.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<a
class="nav-link"
href="{{ item.get_link }}"
target="{{ item.target }}"
data-ga-category="Menu Navigation"
data-ga-action="{{ link_ga_action }}"
data-ga-label="{{ page_category }}">
Expand Down Expand Up @@ -48,6 +49,7 @@
<a
class="nav-link"
href="{{ item.get_link }}"
target="{{ item.target }}"
data-ga-category="Submenu Navigation"
data-ga-action="{{ link_ga_action }}"
data-ga-label="{{ page_category }}">
Expand Down
2 changes: 2 additions & 0 deletions templates/burger-menu.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<a
class="nav-link"
href="{{ site.url }}"
target="{{ item.target }}"
data-ga-category="Menu Navigation"
data-ga-action="Home"
data-ga-label="{{ page_category }}">
Expand All @@ -50,6 +51,7 @@
<a
class="btn btn-donate"
href="{{ donate_menu_items[0].link }}"
target="{{ item.target }}"
data-ga-category="Menu Navigation"
data-ga-action="Donate"
data-ga-label="{{ page_category }}">
Expand Down
1 change: 1 addition & 0 deletions templates/desktop-menu.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<a
class="nav-link"
href="{{ item.get_link }}"
target="{{ item.target }}"
data-ga-category="Menu Navigation"
data-ga-action="{{ link_ga_action }}"
data-ga-label="{{ page_category }}">
Expand Down
2 changes: 2 additions & 0 deletions templates/footer.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<li>
<a
href="{{ primary.url }}"
target="{{ item.target }}"
data-ga-category="Footer Navigation"
data-ga-action="Footer Links"
data-ga-label="{{ primary.title }}"
Expand All @@ -32,6 +33,7 @@
<li>
<a
href="{{ secondary.url }}"
target="{{ item.target }}"
data-ga-category="Footer Navigation"
data-ga-action="Footer Links"
data-ga-label="{{ secondary.title }}"
Expand Down
1 change: 1 addition & 0 deletions templates/navigation-bar.twig
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<a
class="nav-link"
href="{{ item.get_link }}"
target="{{ item.target }}"
data-ga-category="Menu Navigation"
data-ga-action="{{ item.title }}"
data-ga-label="{{ page_category }}">
Expand Down
5 changes: 4 additions & 1 deletion templates/navigation-bar_min.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
{% if key == 0 %}
<li class="nav-item {{ item.class }}">
{% endif %}
<a class="nav-link" href="{{ item.get_link }}">{{ item.title|striptags|trim|slice(0, 2) }}</a>
<a class="nav-link"
href="{{ item.get_link }}"
target="{{ item.target }}"
>{{ item.title|striptags|trim|slice(0, 2) }}</a>
{% if key == (languages - 1) %}
</li>
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions templates/navigation-submenu.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<a
class="nav-link"
href="{{ item.get_link }}"
target="{{ item.target }}"
data-ga-category="Submenu Navigation"
data-ga-action="{{ item.title }}"
data-ga-label="{{ page_category }}">
Expand Down

0 comments on commit ab6b081

Please sign in to comment.