Skip to content

Commit 2aedfca

Browse files
authored
Force allow the root page to be indexed (#1548)
* Force allow the root page to be indexed
1 parent 4d497e5 commit 2aedfca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Markdown/HtmlWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private async Task<RenderResult> RenderLayout(MarkdownFile markdown, MarkdownDoc
135135
UrlPathPrefix = markdown.UrlPathPrefix,
136136
AppliesTo = markdown.YamlFrontMatter?.AppliesTo,
137137
GithubEditUrl = editUrl,
138-
AllowIndexing = DocumentationSet.Context.AllowIndexing && (markdown is DetectionRuleFile || !current.Hidden),
138+
AllowIndexing = DocumentationSet.Context.AllowIndexing && (markdown.CrossLink.Equals("docs-content://index.md", StringComparison.OrdinalIgnoreCase) || markdown is DetectionRuleFile || !current.Hidden),
139139
CanonicalBaseUrl = DocumentationSet.Context.CanonicalBaseUrl,
140140
GoogleTagManager = DocumentationSet.Context.GoogleTagManager,
141141
Features = DocumentationSet.Configuration.Features,

0 commit comments

Comments
 (0)