mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	| @@ -53,18 +53,14 @@ | |||||||
|                         {{- $processableFormats = $processableFormats | append "webp" -}} |                         {{- $processableFormats = $processableFormats | append "webp" -}} | ||||||
|                     {{- end -}} |                     {{- end -}} | ||||||
|                     {{- $prod := (hugo.IsProduction | or (eq site.Params.env "production")) }} |                     {{- $prod := (hugo.IsProduction | or (eq site.Params.env "production")) }} | ||||||
|                     {{- $imgUrl := "" }} |  | ||||||
|                     {{- if and (in $processableFormats $img.MediaType.SubType) (eq $prod true)}} |                     {{- if and (in $processableFormats $img.MediaType.SubType) (eq $prod true)}} | ||||||
|                         {{- if site.Params.label.iconHeight }} |                         {{- if site.Params.label.iconHeight }} | ||||||
|                             {{- $img = $img.Resize (printf "x%d" site.Params.label.iconHeight) }} |                             {{- $img = $img.Resize (printf "x%d" site.Params.label.iconHeight) }} | ||||||
|                         {{ else }} |                         {{ else }} | ||||||
|                             {{- $img = $img.Resize "x30" }} |                             {{- $img = $img.Resize "x30" }} | ||||||
|                         {{- end }} |                         {{- end }} | ||||||
|                         {{- $imgUrl = $img.Permalink }} |  | ||||||
|                     {{- else }} |  | ||||||
|                         {{- $imgUrl = site.Params.label.icon | absURL }} |  | ||||||
|                     {{- end }} |                     {{- end }} | ||||||
|                     <img src="{{ $imgUrl }}" alt="logo" aria-label="logo" |                     <img src="{{ $img.Permalink }}" alt="logo" aria-label="logo" | ||||||
|                         height="{{- site.Params.label.iconHeight | default "30" -}}"> |                         height="{{- site.Params.label.iconHeight | default "30" -}}"> | ||||||
|                 {{- else }} |                 {{- else }} | ||||||
|                 <img src="{{- site.Params.label.icon | absURL -}}" alt="logo" aria-label="logo" |                 <img src="{{- site.Params.label.icon | absURL -}}" alt="logo" aria-label="logo" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange