Only add content from a list page if there's actually content to render
This commit is contained in:
		
							parent
							
								
									5eb9c2c826
								
							
						
					
					
						commit
						c17177aecd
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -4,9 +4,9 @@
 | 
			
		|||
      {{ partial "page_header.html" (dict "page" .) }}
 | 
			
		||||
    </header>
 | 
			
		||||
 | 
			
		||||
    <div class="main--list__content">
 | 
			
		||||
      {{ .Content }}
 | 
			
		||||
    </div>
 | 
			
		||||
    {{- with .Content }}
 | 
			
		||||
    <div class="main--list__content">{{ . }}</div>
 | 
			
		||||
    {{ end -}}
 | 
			
		||||
 | 
			
		||||
    <div class="main--list__page-list">
 | 
			
		||||
      {{ range .Pages.ByDate.Reverse }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue