mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	Allow adding SVG in place of logo image (#976)
Usage => Params.label.iconSVG: "<your SVG as a string>"
This commit is contained in:
		| @@ -27,7 +27,7 @@ | ||||
|     font-weight: 700; | ||||
| } | ||||
|  | ||||
| .logo a img { | ||||
| .logo a img, .logo a svg { | ||||
|     display: inline; | ||||
|     vertical-align: middle; | ||||
|     pointer-events: none; | ||||
|   | ||||
| @@ -66,6 +66,8 @@ | ||||
|                 <img src="{{- site.Params.label.icon | absURL -}}" alt="" aria-label="logo" | ||||
|                     height="{{- site.Params.label.iconHeight | default "30" -}}"> | ||||
|                 {{- end -}} | ||||
|                 {{- else if hasPrefix site.Params.label.iconSVG "<svg" }} | ||||
|                     {{ site.Params.label.iconSVG | safeHTML }} | ||||
|                 {{- end -}} | ||||
|                 {{- $label_text -}} | ||||
|             </a> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aniket Teredesai
					Aniket Teredesai