Skip to content

Commit 6f67821

Browse files
committed
Use the current stack version in the landing page
1 parent 4cad0a3 commit 6f67821

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Elastic.Markdown/Layout/_LandingPage.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="container mx-auto pt-16 pb-10 grid md:grid-cols-2 items-center gap-6">
1111
<div>
1212
<h1 class="text-4xl font-bold font-sans text-black">Elastic Docs</h1>
13-
<p class="mt-4">Welcome to the docs that cover all changes in <span class="whitespace-nowrap">Elastic Stack 9.0.0</span> and later, including <span class="whitespace-nowrap">Elastic Stack 9.1.0</span> and <span class="whitespace-nowrap">Elastic Cloud Serverless</span>.
13+
<p class="mt-4">Welcome to the docs that cover all changes in <span class="whitespace-nowrap">Elastic Stack 9.0.0</span> and later, including <span class="whitespace-nowrap">Elastic Stack @Model.CurrentVersion</span> and <span class="whitespace-nowrap">Elastic Cloud Serverless</span>.
1414
For easy reference, changes in 9.1.0 are marked inline. For details, check <a href="https://www.elastic.co/docs/get-started/versioning-availability" class="link">Understanding versioning and availability.</a></p>
1515
<div class="flex md:inline-flex gap-3 mt-6">
1616
<a href="@Model.Link("/get-started/")" class="grow select-none cursor-pointer text-white text-nowrap bg-blue-elastic hover:bg-blue-elastic-110 focus:ring-4 focus:ring-blue-elastic-50 font-semibold font-sans rounded-sm px-6 py-2 focus:outline-none h-10 flex items-center justify-center">

src/Elastic.Markdown/Page/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
StaticFileContentHashProvider = Model.StaticFileContentHashProvider,
3838
ReportIssueUrl = Model.ReportIssueUrl,
3939
LegacyPages = Model.LegacyPages,
40-
CurrentVersion = Model.CurrentVersion,
40+
CurrentVersion = Model.CurrentDocument.YamlFrontMatter?.Layout == MarkdownPageLayout.LandingPage ? Model.VersionsConfig.VersioningSystems[0].Current : Model.CurrentVersion,
4141
AllVersionsUrl = Model.AllVersionsUrl,
4242
VersionDropdownSerializedModel = JsonSerializer.Serialize(Model.VersionDropdownItems,
4343
ViewModelSerializerContext.Default.VersionDrownDownItemViewModelArray),

0 commit comments

Comments
 (0)