Skip to content

Commit

Permalink
Vote-3138: Set up inpage nav to not show for non latin translations (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
clmedders authored Dec 20, 2024
1 parent b4b0db0 commit ef9d4a5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends "page.html.twig" %}
{% set title = drupal_title() %}
{% set excludedLanguages = ['ar', 'am', 'bn', 'zh-hans', 'zh', 'hi', 'ja', 'km', 'ru'] %}

{% block main %}
<main role="main" id="main-content">
Expand All @@ -9,7 +10,8 @@
'media': drupal_field('field_media', 'node', node.id(), {type: 'media_thumbnail', settings: {image_style: 'scaled_lg' }}) | field_value,
'variant': 'dark'
} %}
<div class="vote-main-content-row vote-block-margin-y--narrow grid-container usa-in-page-nav-container">
<div class="vote-main-content-row vote-block-margin-y--narrow grid-container {% if language not in excludedLanguages %} usa-in-page-nav-container {% endif %}">
{% if language not in excludedLanguages %}
<aside
class="usa-in-page-nav"
data-main-content-selector=".usa-in-page-nav-container"
Expand All @@ -19,6 +21,7 @@
data-root-margin="48px 0px -90% 0px"
data-threshold="1"
></aside>
{% endif %}
<div class="vote-page-content vote-page-content--alt">
{{ page.content }}
</div>
Expand Down

0 comments on commit ef9d4a5

Please sign in to comment.