mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-21 18:11:37 +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:
parent
87ffee9fcf
commit
77ffb308c3
@ -27,7 +27,7 @@
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo a img {
|
.logo a img, .logo a svg {
|
||||||
display: inline;
|
display: inline;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
@ -66,6 +66,8 @@
|
|||||||
<img src="{{- site.Params.label.icon | absURL -}}" alt="" aria-label="logo"
|
<img src="{{- site.Params.label.icon | absURL -}}" alt="" aria-label="logo"
|
||||||
height="{{- site.Params.label.iconHeight | default "30" -}}">
|
height="{{- site.Params.label.iconHeight | default "30" -}}">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- else if hasPrefix site.Params.label.iconSVG "<svg" }}
|
||||||
|
{{ site.Params.label.iconSVG | safeHTML }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $label_text -}}
|
{{- $label_text -}}
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user