Skip to content

Commit ca15193

Browse files
authored
Add current version meta tag (#1388)
1 parent fbe4116 commit ca15193

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Elastic.Markdown/Slices/Index.cshtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,17 @@
3636
};
3737
protected override Task ExecuteSectionAsync(string name)
3838
{
39+
if (name == GlobalSections.Head)
40+
{
41+
<meta class="elastic" name="product_version" content="@Model.CurrentVersion"/>
42+
<meta name="DC.identifier" content="@Model.CurrentVersion"/>
43+
}
3944
if (name == GlobalSections.Head && Model.Products is { Count: > 0 })
4045
{
4146
var products = string.Join(",", Model.Products.Select(p => p.DisplayName));
4247
<meta class="elastic" name="product_name" content="@(products)"/>
4348
<meta name="DC.subject" content="@(products)"/>
4449
}
45-
4650
return Task.CompletedTask;
4751
}
4852
}

0 commit comments

Comments
 (0)