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 da90aa5 commit 6a91063Copy full SHA for 6a91063
src/Elastic.Markdown/Slices/Layout/_TocTreeNav.cshtml
@@ -8,7 +8,7 @@
8
@foreach (var item in Model.SubTree.NavigationItems)
9
{
10
var id = item.Id;
11
- if (item is FileNavigation file)
+ if (item is FileNavigation file && Model.SubTree.Index?.FileName != file.File.FileName)
12
13
var f = file.File;
14
<li class="flex group/li @(item.Depth == topLevelFile ? "font-semibold py-6 not-last:border-b-1 border-grey-20" : "ml-5 lg:ml-4 mt-4 lg:mt-3")">
0 commit comments