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 22@implements  IUsesLayout <Elastic .Documentation .Site ._GlobalLayout , GlobalLayoutViewModel >
33@functions  { 
44	public  GlobalLayoutViewModel  LayoutModel  =>  Model ;
5- 	protected  override  Task  ExecuteSectionAsync (string  name )
5+ 	protected  override  async   Task  ExecuteSectionAsync (string  name )
66	{ 
77		if  (name  ==  GlobalSections .Footer  &&  Model .Layout  is  not  LayoutName .Archive )
88		{
1919					< / button > 
2020				< / div > 
2121			< / 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 );
2230		}
23- 		return  Task .CompletedTask ;
2431	} 
2532	private  async  Task  RenderDefault ()
2633	{ 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments