We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc2ab63 commit 37c7063Copy full SHA for 37c7063
src/components/header/index.astro
@@ -115,7 +115,7 @@ const {title, category} = Astro.props;
115
</a>
116
</li>
117
<li class="item" aria-current="page"
118
- style="margin-left: .75rem;">{category}
+ style="margin-left: .75rem;">{category ? category : ''}
119
120
<li class="item">
121
<svg width="17" height="17"
@@ -128,7 +128,7 @@ const {title, category} = Astro.props;
128
clip-rule="evenodd"/>
129
</svg>
130
131
- <li class="item active" aria-current="page">{title.split('|')[0].trim()}
+ <li class="item active" aria-current="page">{title ? title.split('|')[0].trim() : ''}
132
133
</ul>
134
</nav>
0 commit comments