Commit 7384bde 1 parent f0f9923 commit 7384bde Copy full SHA for 7384bde
File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
{% extends " ./_design-system-base.njk" %}
2
2
3
3
{% block skipLink %}
4
+ <a id =" top" ></a >
4
5
{{ tnaSkipLink ({
5
6
href : ' main-content' ,
6
7
text : ' Skip to main content'
13
14
14
15
{% block main %}
15
16
{% set headings = contents | headingsList %}
17
+ {% set topLevel = group |kebabToSpace |capitalize == title |capitalize %}
16
18
17
19
<div class =" tna-container" >
18
20
<main class =" tna-column tna-column--width-3-4 tna-column--width-2-3-medium tna-column--full-small tna-column--full-tiny {{ mainClasses }} tna-section" id =" main-content" role =" main" >
19
- {% if group | kebabToSpace | capitalize == title | capitalize %}
21
+ {% if topLevel %}
20
22
<h1 class =" tna-heading-xl" >
21
23
{{ title }}
22
24
</h1 >
90
92
{% endfor %}
91
93
</ol >
92
94
</nav >
95
+ {% if not topLevel %}
96
+ <div class =" tna-column tna-column--full" >
97
+ <hr >
98
+ <p >
99
+ <a href =" #top" class =" tna-button tna-button--small tna-button--plain" ><i class =" fa-solid fa-arrow-up" ></i >Back to top</a >
100
+ </p >
101
+ </div >
102
+ {% endif %}
93
103
</div >
94
104
{% endblock %}
You can’t perform that action at this time.
0 commit comments