Skip to content

Commit

Permalink
Use the indexpath basename for the doc header
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 30, 2022
1 parent fddbe55 commit e188eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/docs/sidebar-header.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<header class="h-16 p-4 border-b flex items-center">
<h2 class="font-bold opacity-75 hover:opacity-100 w-fit">
@if(Hyde::docsIndexPath() !== false)
<a href="{{ Hyde::relativePath(Hyde::docsIndexPath(), $currentPage) }}">
<a href="{{ basename(Hyde::docsIndexPath()) }}">
{{ config('hyde.name') }} Docs
</a>
@else
Expand Down

0 comments on commit e188eb5

Please sign in to comment.