Allow adding SVG in place of logo image (#976)

Usage =>
Params.label.iconSVG: "<your SVG as a string>"
This commit is contained in:
Aniket Teredesai authored and GitHub committed 2022-07-23 09:45:32 +05:30
1 parent 87ffee9fcf
commit 77ffb308c3
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -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>