diff --git a/src/Elastic.Markdown/Slices/_Layout.cshtml b/src/Elastic.Markdown/Slices/_Layout.cshtml index 4094c2275..a6d2e03aa 100644 --- a/src/Elastic.Markdown/Slices/_Layout.cshtml +++ b/src/Elastic.Markdown/Slices/_Layout.cshtml @@ -2,25 +2,29 @@ @implements IUsesLayout @functions { public GlobalLayoutViewModel LayoutModel => Model; - protected override Task ExecuteSectionAsync(string name) + protected override async Task ExecuteSectionAsync(string name) { - if (name == GlobalSections.Footer && Model.Layout is not LayoutName.Archive) + switch (name) { - + case GlobalSections.Head: + await RenderSectionAsync(GlobalSections.Head); + break; + case GlobalSections.Footer when Model.Layout is not LayoutName.Archive: + + break; } - return Task.CompletedTask; } private async Task RenderDefault() {