mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-05 19:08:32 +02:00
absolute url in the link preload imagesrcset (#2203)
This commit is contained in:
@@ -35,14 +35,15 @@
|
|||||||
{{ partial "css" . }}
|
{{ partial "css" . }}
|
||||||
|
|
||||||
{{ if .IsHome }}
|
{{ if .IsHome }}
|
||||||
{{ with .Site.GetPage "/headless/main/hero" }}
|
{{ $srcset := slice
|
||||||
{{ with .Params.astronauts }}
|
(printf "%s 960w" (absURL "/img/home/hero/astronauts-960.webp"))
|
||||||
<link rel="preload" as="image" type="image/webp" fetchpriority="high"
|
(printf "%s 1920w" (absURL "/img/home/hero/astronauts-1920.webp"))
|
||||||
imagesrcset="{{ .webpSrcset }}"
|
(printf "%s 3840w" (absURL "/img/home/hero/astronauts.webp"))
|
||||||
imagesizes="100vw"
|
}}
|
||||||
/>
|
<link rel="preload" as="image" type="image/webp" fetchpriority="high"
|
||||||
{{ end }}
|
imagesrcset="{{ delimit $srcset ", " }}"
|
||||||
{{ end }}
|
imagesizes="100vw"
|
||||||
|
/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ hugo.Generator }}
|
{{ hugo.Generator }}
|
||||||
|
|||||||
Reference in New Issue
Block a user