Skip to content

Commit

Permalink
Move skip link to top of page so that screenreaders can skip to conte…
Browse files Browse the repository at this point in the history
…nt asap
  • Loading branch information
jguo144 committed Mar 11, 2024
1 parent 7d3e2f1 commit c9a9f2a
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{% ckan_extends %}

{%- block page -%}

{% block skip %}
{{ super() }}
{% endblock %}

<input type="checkbox" id="hb__trigger" class="hb__trigger" aria-hidden="true">
<div class="main-navigation">
<div class="main-navigation-title">
Expand All @@ -14,18 +19,15 @@
</ul>
</div>
</div>
<div class="page" id="page">
{% block skip %}
{{ super() }}
{% endblock %}

<div class="page" id="page">
{% block header %}
{% if header_layout_type=='compressed' %}
{% if header_layout_type=='compressed' %}
{% include "compressed_header.html" %}
{% else %}
{% else %}
{% include "default_header.html" %}
{% endif %}
{% endblock %}
{% endif %}
{% endblock %}

{%- block content %}
{{ super() }}
Expand Down

0 comments on commit c9a9f2a

Please sign in to comment.