From 41b65a8943ab81c2da7846696e4323bf33197cbd Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Thu, 2 Apr 2026 10:57:06 +0200 Subject: [PATCH 1/2] HTML: Omit version meta tags for versionless pages Versionless pages (serverless, cloud, etc.) were rendering the sentinel value 99999.0+ in product_version and DC.identifier meta tags. Now these tags are omitted entirely when the page's versioning system is versionless. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/Elastic.Codex/Page/Index.cshtml | 7 +++++-- src/Elastic.Markdown/HtmlWriter.cs | 4 +++- src/Elastic.Markdown/Page/Index.cshtml | 7 +++++-- src/Elastic.Markdown/Page/IndexViewModel.cs | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/Elastic.Codex/Page/Index.cshtml b/src/Elastic.Codex/Page/Index.cshtml index 258db5b7ab..a7f1f08d7e 100644 --- a/src/Elastic.Codex/Page/Index.cshtml +++ b/src/Elastic.Codex/Page/Index.cshtml @@ -84,8 +84,11 @@ { if (name == GlobalSections.Head) { - - + @if (Model.CurrentVersion is not null) + { + + + }