When I started using the blank theme, I found urls like /tags/js would list all posts instead of just posts tagged 'js'. Changing '.Site.Pages' to 'Data.Pages' fixes this, and now my site can have lists that filter posts by category and tags.
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			287 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			287 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{{ partial "header.html" . }}
 | 
						|
	<main>
 | 
						|
		{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
 | 
						|
		{{ range $paginator.Pages }}
 | 
						|
			{{ partial "summary.html" . }}
 | 
						|
		{{ end }}
 | 
						|
		{{ partial "pagination.html" . }}
 | 
						|
	</main>
 | 
						|
{{ partial "sidebar.html" . }}
 | 
						|
{{ partial "footer.html" . }}
 |