Skip to content

Commit 6fd92f1

Browse files
authored
Ensure landing page, not found page and 2nd level nav links are not boosted (#1454)
1 parent 86ad088 commit 6fd92f1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Elastic.Documentation.Site/Layout/_SecondaryNav.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@using Elastic.Documentation.Configuration.Builder
22
@inherits RazorSlice<Elastic.Documentation.Site.GlobalLayoutViewModel>
3-
<nav id="secondary-nav" class="bg-grey-10 border-t-1 border-grey-20 font-sans font-semibold text-sm text-ink-light md:text-base">
3+
<nav id="secondary-nav" hx-disable="true" class="bg-grey-10 border-t-1 border-grey-20 font-sans font-semibold text-sm text-ink-light md:text-base">
44
<div class="max-w-(--max-layout-width) flex mx-auto justify-between items-center p-6">
55
<div class="flex gap-2 flex-nowrap items-center">
66
@if (Model.RenderHamburgerIcon)

src/Elastic.Markdown/Layout/_LandingPage.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@inherits RazorSlice<Elastic.Markdown.MarkdownLayoutViewModel>
2-
<div class="w-full text-ink relative text-pretty">
2+
<div hx-disable="true" class="w-full text-ink relative text-pretty">
33
<div class="w-full absolute top-0 left-0 right-0 htmx-indicator" id="htmx-indicator" role="status">
44
<div class="h-[2px] w-full overflow-hidden">
55
<div class="progress w-full h-full bg-pink-70 left-right"></div>

src/Elastic.Markdown/Layout/_NotFound.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@inherits RazorSlice<Elastic.Markdown.MarkdownLayoutViewModel>
2-
<div class="p-12 font-body text-center flex flex-col items-center justify-center">
2+
<div hx-disable="true" class="p-12 font-body text-center flex flex-col items-center justify-center">
33
<span class="text-4xl font-sans font-semibold">Page not found</span>
44
<p class="mt-2">The page you are looking for could not be found.</p>
55
<a href="@Model.Link("/")" class="link my-6">

0 commit comments

Comments
 (0)