Use .Pages instead of site.RegularPages in list.html
This results in Section Pages only showing the pages of their respective Sections instead of showing all available articles.
This commit is contained in:
		
							parent
							
								
									a6b89f92e2
								
							
						
					
					
						commit
						fe94f1b2ff
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -5,7 +5,7 @@ | ||||||
| 
 | 
 | ||||||
|     <div class="articles h-feed"> |     <div class="articles h-feed"> | ||||||
|         <h1 class="post-title">{{ i18n .Title }}</h1> |         <h1 class="post-title">{{ i18n .Title }}</h1> | ||||||
|         {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} |         {{ $pages := where .Pages "Type" "in" site.Params.mainSections }} | ||||||
|         {{ range $pages }} |         {{ range $pages }} | ||||||
|             <div class="post-short-list h-entry"> |             <div class="post-short-list h-entry"> | ||||||
|                 <header class="post-header">  |                 <header class="post-header">  | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue