mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 18:15:31 +00:00
fix: SVG header logo missing size (Lighthouse fix)
See unresolved Hugo issue: https://github.com/gohugoio/hugo/issues/3700 Workaround is to manually define SVG size: site.Params.header.image.width site.Params.header.image.height
This commit is contained in:
1 parent
8b6612e763
commit
f6356f5ceb
1 file changed
+3
-1
@@ -20,7 +20,9 @@
|
||||
<div class="d-none d-lg-inline-flex">
|
||||
<a class="navbar-brand" href="{{ "/" | relLangURL }}">
|
||||
{{- if $has_logo -}}
|
||||
<img src="{{ $logo.RelPermalink }}" alt="{{ site.Title }}">
|
||||
<img src="{{ $logo.RelPermalink }}" alt="{{ site.Title }}"
|
||||
{{with site.Params.header.image.width}}width="{{.}}"{{end}}
|
||||
{{with site.Params.header.image.height}}height="{{.}}"{{end}}>
|
||||
{{- else -}}
|
||||
{{- site.Title -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in new issue
Block a user