mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 11:25:26 +01:00 
			
		
		
		
	Preload profileMode image and label icon
				
					
				
			before they are discovered in HTML
This commit is contained in:
		| @@ -58,6 +58,16 @@ | ||||
| <link crossorigin="anonymous" href="{{ $stylesheet.RelPermalink }}" rel="preload stylesheet" as="style"> | ||||
| {{- end }} | ||||
|  | ||||
| {{- with .Site.Params.profileMode }} | ||||
| {{- if and .enabled .imageUrl }} | ||||
| <link rel="preload" href="{{ .imageUrl }}" as="image"> | ||||
| {{- end }} | ||||
| {{- end }} | ||||
|  | ||||
| {{- with .Site.Params.label.icon }} | ||||
| <link rel="preload" href="{{ . }}" as="image"> | ||||
| {{- end }} | ||||
|  | ||||
| {{- /* Search */}} | ||||
| {{- if (eq .Layout `search`) -}} | ||||
| <link crossorigin="anonymous" rel="preload" as="fetch" href="../index.json"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange