Skip to content

Commit 37c7063

Browse files
v0.5.826
– small tweaks and fixes
1 parent fc2ab63 commit 37c7063

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/header/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const {title, category} = Astro.props;
115115
</a>
116116
</li>
117117
<li class="item" aria-current="page"
118-
style="margin-left: .75rem;">{category}
118+
style="margin-left: .75rem;">{category ? category : ''}
119119
</li>
120120
<li class="item">
121121
<svg width="17" height="17"
@@ -128,7 +128,7 @@ const {title, category} = Astro.props;
128128
clip-rule="evenodd"/>
129129
</svg>
130130
</li>
131-
<li class="item active" aria-current="page">{title.split('|')[0].trim()}
131+
<li class="item active" aria-current="page">{title ? title.split('|')[0].trim() : ''}
132132
</li>
133133
</ul>
134134
</nav>

0 commit comments

Comments
 (0)