Add a latest-page-summary shortcode
Produces a summary of the latest page in a given section
This commit is contained in:
		
							parent
							
								
									bccadced1b
								
							
						
					
					
						commit
						aee96476a7
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		
							
								
								
									
										4
									
								
								layouts/shortcodes/latest-page-summary.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								layouts/shortcodes/latest-page-summary.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
{{- $section := site.GetPage (.Get "section") -}}
 | 
			
		||||
{{ range $section.Pages.ByDate.Reverse.Limit 1 }}
 | 
			
		||||
  {{ .Render "page_summary" }}
 | 
			
		||||
{{ end }}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue