mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-26 23:15:53 -05: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;
|
||||
}
|
||||
|
||||
.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>
|
||||
|
Loading…
Reference in New Issue
Block a user