Source code of my website
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

⚡️ : add explicit image size to reduce layout shift

+1 -1
+1 -1
layouts/index.html
··· 33 33 {{ with .GetMatch "{cover.*}" }} 34 34 {{ $cover := .Fill "820x240 webp" }} 35 35 {{ with $cover }} 36 - <img loading="lazy" alt="Cover image for the article" src="{{ .Permalink }}"/> 36 + <img loading="lazy" alt="Cover for the article" src="{{ .Permalink }}" width="820" height="240"/> 37 37 {{ end }} 38 38 {{ end }} 39 39 {{ end }}