From 0c287152ef7b06893d9dc2f4feba15fc9b5032d4 Mon Sep 17 00:00:00 2001 From: James Tatum Date: Sun, 12 Sep 2021 15:58:40 -0700 Subject: [PATCH] fix: add width and height to header/featured image (#2463) Prevent layout shift (Lighthouse) --- wowchemy/layouts/partials/page_header.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wowchemy/layouts/partials/page_header.html b/wowchemy/layouts/partials/page_header.html index 2652cfba..5e3dd0dd 100644 --- a/wowchemy/layouts/partials/page_header.html +++ b/wowchemy/layouts/partials/page_header.html @@ -28,7 +28,7 @@ {{- end -}} {{- end -}} {{ if $img }} - {{$alt}} + {{$alt}} {{ else }} {{$alt}} {{ end }} @@ -75,7 +75,7 @@ {{/* Featured image */}}
- {{ with $.Params.image.alt_text }}{{.}}{{ end }} + {{ with $.Params.image.alt_text }}{{.}}{{ end }} {{ with $.Params.image.caption }}{{ . | markdownify | emojify }}{{ end }}