15 lines
		
	
	
		
			484 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			15 lines
		
	
	
		
			484 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| 
								 | 
							
								{{- $scratch := .scratch -}}
							 | 
						||
| 
								 | 
							
								{{- $scratch.Set "pages" slice -}}
							 | 
						||
| 
								 | 
							
								{{- $tmpScratch := newScratch -}}
							 | 
						||
| 
								 | 
							
								{{- range $post := (where (where site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") -}}
							 | 
						||
| 
								 | 
							
								{{- $term := index ($post.GetTerms "series") 0 -}}
							 | 
						||
| 
								 | 
							
								{{- if $term -}}
							 | 
						||
| 
								 | 
							
								{{- if not ($tmpScratch.Get $term.Permalink) -}}
							 | 
						||
| 
								 | 
							
								{{- $tmpScratch.Set $term.Permalink true -}}
							 | 
						||
| 
								 | 
							
								{{- $scratch.Add "pages" $post -}}
							 | 
						||
| 
								 | 
							
								{{- end -}}
							 | 
						||
| 
								 | 
							
								{{- else -}}
							 | 
						||
| 
								 | 
							
								{{- $scratch.Add "pages" $post -}}
							 | 
						||
| 
								 | 
							
								{{- end -}}
							 | 
						||
| 
								 | 
							
								{{- end -}}
							 |