remove iconHeight regex for iconSVG
This commit is contained in:
parent
3b81ff905b
commit
24808b64da
@ -67,7 +67,7 @@
|
|||||||
height="{{- site.Params.label.iconHeight | default "30" -}}">
|
height="{{- site.Params.label.iconHeight | default "30" -}}">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- else if hasPrefix site.Params.label.iconSVG "<svg" }}
|
{{- else if hasPrefix site.Params.label.iconSVG "<svg" }}
|
||||||
{{ site.Params.label.iconSVG | replaceRE `\s*height\s*=\s*"[\w\s]*"|\s*width\s*=\s*"[\w\s]*"` "" | replaceRE "^<svg" (printf `<svg height="%d"` site.Params.label.iconHeight) | safeHTML }}
|
{{ site.Params.label.iconSVG | safeHTML }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $label_text -}}
|
{{- $label_text -}}
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user