Initial commit
This commit is contained in:
16
layouts/partials/head/preload.html
Executable file
16
layouts/partials/head/preload.html
Executable file
@@ -0,0 +1,16 @@
|
||||
{{/* Preconnect to external domains */}}
|
||||
<link rel="preconnect" href="https://jellyfin.media.pivoine.art" crossorigin>
|
||||
|
||||
{{/* DNS prefetch */}}
|
||||
<link rel="dns-prefetch" href="https://unpkg.com">
|
||||
|
||||
{{/* Preload fonts if we add custom fonts later */}}
|
||||
{{/* <link rel="preload" href="/fonts/JetBrainsMono-Regular.woff2" as="font" type="font/woff2" crossorigin> */}}
|
||||
|
||||
{{/* Preload cover image on track pages */}}
|
||||
{{- if and .IsPage (eq .Section "tracks") }}
|
||||
{{- with .Resources.GetMatch "cover.*" }}
|
||||
{{- $webp := .Resize "800x webp q85" }}
|
||||
<link rel="preload" href="{{ $webp.RelPermalink }}" as="image" type="image/webp">
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user