Source code of my website
1
fork

Configure Feed

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

🔨 : use 75 quality when resizing images

+8 -8
+2 -2
layouts/_default/_markup/render-image.html
··· 1 1 {{- $image := .Page.Resources.GetMatch .Destination -}} 2 2 3 3 {{- $width820 := math.Min 820 $image.Width -}} 4 - {{- $resizeOpts := printf "%dx webp lossless q100 lanczos" (int $width820) -}} 4 + {{- $resizeOpts := printf "%dx webp q75 lanczos" (int $width820) -}} 5 5 {{- $img820 := $image.Resize $resizeOpts -}} 6 6 7 7 {{- $width480 := math.Min 480 $image.Width -}} 8 - {{- $resizeOpts := printf "%dx webp lossless q100 lanczos" (int $width480) -}} 8 + {{- $resizeOpts := printf "%dx webp q75 lanczos" (int $width480) -}} 9 9 {{- $img480 := $image.Resize $resizeOpts -}} 10 10 11 11 <img srcset="
+2 -2
layouts/_default/single.html
··· 32 32 33 33 {{ with .Resources }} 34 34 {{ with .GetMatch "{cover.*}" }} 35 - {{ $cover820 := .Resize "820x webp lossless q100 lanczos" }} 36 - {{ $cover480 := .Resize "480x webp lossless q100 lanczos" }} 35 + {{ $cover820 := .Resize "820x webp q75 lanczos" }} 36 + {{ $cover480 := .Resize "480x webp q75 lanczos" }} 37 37 <img srcset="{{ $cover820.RelPermalink }} 820w, 38 38 {{ $cover480.RelPermalink }} 480w" 39 39 sizes="(max-width: 480px) 480px,
+2 -2
layouts/index.html
··· 33 33 34 34 {{ with .Resources }} 35 35 {{ with .GetMatch "{cover.*}" }} 36 - {{ $cover820 := .Fill "820x240 webp lossless q100 lanczos" }} 37 - {{ $cover480 := .Fill "480x240 webp lossless q100 lanczos" }} 36 + {{ $cover820 := .Fill "820x240 webp q75 lanczos" }} 37 + {{ $cover480 := .Fill "480x240 webp q75 lanczos" }} 38 38 <img loading="lazy" 39 39 srcset="{{ $cover820.RelPermalink }} 820w, 40 40 {{ $cover480.RelPermalink }} 480w"
+2 -2
layouts/posts/single.html
··· 46 46 47 47 {{ with .Resources }} 48 48 {{ with .GetMatch "{cover.*}" }} 49 - {{ $cover820 := .Resize "820x webp lossless q100 lanczos" }} 50 - {{ $cover480 := .Resize "480x webp lossless q100 lanczos" }} 49 + {{ $cover820 := .Resize "820x webp q75 lanczos" }} 50 + {{ $cover480 := .Resize "480x webp q75 lanczos" }} 51 51 <img srcset="{{ $cover820.RelPermalink }} 820w, 52 52 {{ $cover480.RelPermalink }} 480w" 53 53 sizes="(max-width: 480px) 480px,