Skip to content

Commit 8b7ad76

Browse files
committed
disable heading anchors on homepage
1 parent c5def3c commit 8b7ad76

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

templates/base.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
'breadcrumbs': page.breadcrumbs is defined ? page.breadcrumbs : {}
153153
} %}{% endembed %}
154154
{% endblock breadcrumbs %}
155-
<main id="main">
155+
<main id="main" {% block extra_main_attributes %}{{ extra_main_attributes|default('')|raw }}{% endblock %}>
156156
{% import '@W3CWebsiteTemplates/components/styles/notes.html.twig' as notes %}
157157
{{ notes.errors(error_notes) }}
158158
{{ notes.successes(success_notes) }}

templates/pages/home.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% extends '@W3CWebsiteTemplates/base.html.twig' %}
22

33
{% set body_classes = 'home' %}
4+
{% set extra_main_attributes = 'data-anchor="no"' %}
45

56
{% block breadcrumbs %}{% endblock breadcrumbs %}
67

0 commit comments

Comments
 (0)