- Move photo_thumbnail.html to photos/thumbnail.html - Add a photos/list.html partial that returns a list of photos for the current page - Use the template above everywhere we need a list of photos for the page
		
			
				
	
	
		
			6 lines
		
	
	
	
		
			327 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
	
		
			327 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{{- $thumbnail := partial "photos/thumbnail.html" (dict "Page" . "Width" 600 "Height" 600) -}}
 | 
						|
{{- $thumbnail = $thumbnail.Crop "600x600" -}}
 | 
						|
{{- $altText := $thumbnail.Params.alt -}}
 | 
						|
<a href="{{ .RelPermalink }}" title="{{ .Title }}">
 | 
						|
  <img src="{{ $thumbnail.RelPermalink }}"{{ with $altText }} alt="{{ . }}"{{ end }}>
 | 
						|
</a>
 |