Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/Elastic.Markdown/Slices/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@implements IUsesLayout<Elastic.Documentation.Site._GlobalLayout, GlobalLayoutViewModel>
@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)
{
Expand All @@ -19,8 +19,15 @@
</button>
</div>
</aside>
//this ensures we forward footer sections declared in this project into to GlobalLayout view's section
await RenderSectionAsync(GlobalSections.Footer);
}

if (name == GlobalSections.Head)
{
//this ensures we forward head sections declared in this project into to GlobalLayout view's section
await RenderSectionAsync(GlobalSections.Head);
}
return Task.CompletedTask;
}
private async Task RenderDefault()
{
Expand Down
Loading