Skip to content

Commit baa37f5

Browse files
committed
Don't indicate error page as home page in navigation
1 parent e74ab11 commit baa37f5

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

src/templates/forms/misc/body_header.txp

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,19 @@
1010
<nav id="navigation" class="site-navigation" aria-label="<txp:text item="site_nav" />" itemscope itemtype="https://schema.org/SiteNavigationElement">
1111
<div>
1212
<txp:section_list default_title='<txp:text item="home" />' include_default wraptag="ul" break="">
13-
<li<txp:if_section name='<txp:section />'> class="active"</txp:if_section>>
14-
<a itemprop="url" href="<txp:section url />">
15-
<txp:section title />
16-
</a>
17-
</li>
13+
<if_status>
14+
<li<txp:if_section name='<txp:section />'> class="active"</txp:if_section>>
15+
<a itemprop="url" href="<txp:section url />"<txp:if_section name='<txp:section />'> aria-current="page"</txp:if_section>>
16+
<txp:section title />
17+
</a>
18+
</li>
19+
<txp:else />
20+
<li>
21+
<a itemprop="url" href="<txp:section url />">
22+
<txp:section title />
23+
</a>
24+
</li>
25+
</if_status>
1826
</txp:section_list>
1927

2028
<!-- links by default to form: 'search_input.txp' unless you specify a different form -->

0 commit comments

Comments
 (0)