mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 11:45:26 +01:00 
			
		
		
		
	Fix profileMode imageUrl preloaded on every page (#495)
Instead we now only preload on the home page. Closes #494 Signed-off-by: Daniel F. Dickinson <20735818+danielfdickinson@users.noreply.github.com>
This commit is contained in:
		 Daniel F. Dickinson
					Daniel F. Dickinson
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							81fcd8f9d4
						
					
				
				
					commit
					a3ad238f78
				
			| @@ -59,7 +59,7 @@ | |||||||
| {{- end }} | {{- end }} | ||||||
|  |  | ||||||
| {{- with .Site.Params.profileMode }} | {{- with .Site.Params.profileMode }} | ||||||
| {{- if and .enabled .imageUrl }} | {{- if and .enabled .imageUrl $.IsHome }} | ||||||
| <link rel="preload" href="{{ .imageUrl }}" as="image"> | <link rel="preload" href="{{ .imageUrl }}" as="image"> | ||||||
| {{- end }} | {{- end }} | ||||||
| {{- end }} | {{- end }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user