Skip to content

Commit 6c00630

Browse files
committed
more ids for algolia
1 parent b672813 commit 6c00630

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/partials/breadcrumbs.hbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{{#unless (or (eq page.layout 'landing') (eq page.layout 'full') (eq page.layout 'home'))}}
2-
<nav class="breadcrumbs flex" aria-label="breadcrumbs">
3-
{{#if page.breadcrumbs}}
4-
<ul class="flex flex-wrap !list-none !m-0 !p-0">
2+
{{#if page.breadcrumbs}}
3+
<nav id="breadcrumbs" class="flex" aria-label="breadcrumbs">
4+
<ol class="flex flex-wrap !list-none !m-0 !p-0">
55
{{#with page.componentVersion}}
66
{{#if (and ./title (ne ./title @root.page.breadcrumbs.0.content))}}
77
<li class="text-link !m-0 !p-0 after:content-['/'] last-of-type:after:content-none after:text-tertiary after:px-2">
8-
<a class="component-home" href="{{{relativize ./url}}}">{{{./title}}}</a>
8+
<a href="{{{relativize ./url}}}">{{{./title}}}</a>
99
</li>
1010
{{/if}}
1111
{{/with}}
@@ -22,7 +22,7 @@
2222
{{/if}}
2323
{{/if}}
2424
{{/each}}
25-
</ul>
26-
{{/if}}
25+
</ol>
2726
</nav>
27+
{{/if}}
2828
{{/unless}}

src/partials/nav.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
{{~/if}}
77
id="side-nav"
88
class="h-full bg-level1 overflow-y-scroll flex flex-col w-[18.5rem] px-2 pt-2">
9-
<div class="flex items-start gap-1 mb-1 ">
9+
<div class="flex items-start gap-1 mb-1">
1010
{{#with @root.page.componentVersion}}
11-
<a class="flex flex-grow py-1 px-2 text-h4 hover:bg-level2 rounded transition-colors !no-underline" href="{{{relativize ./url}}}">{{./title}}</a>
11+
<a id="component-home" class="flex flex-grow py-1 px-2 text-h4 hover:bg-level2 rounded transition-colors !no-underline" href="{{{relativize ./url}}}">{{./title}}</a>
1212
{{/with}}
1313
{{> page-versions page=../page}}
1414
</div>

0 commit comments

Comments
 (0)