mirror of
				https://github.com/gohugoio/hugo.git
				synced 2025-11-03 20:14:26 -05:00 
			
		
		
		
	docs: Example of how to use Order by ExpiryDate
This commit is contained in:
		
							parent
							
								
									02d2f05e74
								
							
						
					
					
						commit
						448f0306d7
					
				@ -188,6 +188,15 @@ your list templates:
 | 
				
			|||||||
    </li>
 | 
					    </li>
 | 
				
			||||||
    {{ end }}
 | 
					    {{ end }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Order by ExpiryDate
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    {{ range .Data.Pages.ByExpiryDate }}
 | 
				
			||||||
 | 
					    <li>
 | 
				
			||||||
 | 
					    <a href="{{ .Permalink }}">{{ .Title }}</a>
 | 
				
			||||||
 | 
					    <div class="meta">{{ .ExpiryDate.Format "Mon, Jan 2, 2006" }}</div>
 | 
				
			||||||
 | 
					    </li>
 | 
				
			||||||
 | 
					    {{ end }}
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
### Order by Lastmod
 | 
					### Order by Lastmod
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    {{ range .Data.Pages.ByLastmod }}
 | 
					    {{ range .Data.Pages.ByLastmod }}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user