File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/Elastic.Markdown/Slices Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 2
2
@implements IUsesLayout <Elastic .Documentation .Site ._GlobalLayout , GlobalLayoutViewModel >
3
3
@functions {
4
4
public GlobalLayoutViewModel LayoutModel => Model ;
5
- protected override Task ExecuteSectionAsync (string name )
5
+ protected override async Task ExecuteSectionAsync (string name )
6
6
{
7
7
if (name == GlobalSections .Footer && Model .Layout is not LayoutName .Archive )
8
8
{
19
19
< / button >
20
20
< / div >
21
21
< / aside >
22
+ // this ensures we forward footer sections declared in this project into to GlobalLayout view's section
23
+ await RenderSectionAsync (GlobalSections .Footer );
24
+ }
25
+
26
+ if (name == GlobalSections .Head )
27
+ {
28
+ // this ensures we forward head sections declared in this project into to GlobalLayout view's section
29
+ await RenderSectionAsync (GlobalSections .Head );
22
30
}
23
- return Task .CompletedTask ;
24
31
}
25
32
private async Task RenderDefault ()
26
33
{
You can’t perform that action at this time.
0 commit comments