Skip to content

Commit

Permalink
Fix wrong handling of missing/empty titleLink option value
Browse files Browse the repository at this point in the history
  • Loading branch information
krisztianb committed Oct 27, 2022
1 parent e3d2801 commit ff8526c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/output/themes/default/partials/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const toolbar = (context: DefaultThemeRenderContext, props: PageEvent<Ref
<li class="state failure">The search index is not available</li>
</ul>

<a href={context.options.getValue("titleLink") ?? context.relativeURL("index.html")} class="title">
<a href={context.options.getValue("titleLink") || context.relativeURL("index.html")} class="title">
{props.project.name}
</a>
</div>
Expand Down

0 comments on commit ff8526c

Please sign in to comment.