Source code of my website
1
fork

Configure Feed

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

⚡️ : convert cover images to webp on build

+3 -3
+1 -1
layouts/_default/single.html
··· 19 19 20 20 {{ with .Resources }} 21 21 {{ with .GetMatch "{cover.*}" }} 22 - {{ $cover := .Resize "820x" }} 22 + {{ $cover := .Resize "820x webp" }} 23 23 {{ with $cover }} 24 24 <img src="{{ .Permalink }}"/> 25 25 {{ end }}
+1 -1
layouts/index.html
··· 31 31 32 32 {{ with .Resources }} 33 33 {{ with .GetMatch "{cover.*}" }} 34 - {{ $cover := .Fill "820x240" }} 34 + {{ $cover := .Fill "820x240 webp" }} 35 35 {{ with $cover }} 36 36 <img src="{{ .Permalink }}"/> 37 37 {{ end }}
+1 -1
layouts/partials/sidebar/title.html
··· 2 2 <h1 class="brand"> 3 3 <a href="{{ .Site.BaseURL }}"> 4 4 {{ $brand_image := resources.Get .Site.Params.brand_image }} 5 - {{ $brand_image := $brand_image.Fill "180x180 Center"}} 5 + {{ $brand_image := $brand_image.Fill "180x180 webp Center"}} 6 6 <img src="{{ $brand_image.Permalink }}" alt="brand image"> 7 7 <h1>{{ .Site.Params.brand }}</h1> 8 8 </a>