Files
pivoine.art/layouts/partials/head/preload.html
Sebastian Krüger 3bccbdf82d feat: serve audio as local Hugo page resources instead of Jellyfin
Download all 20 track MP3s from Jellyfin and store them as page bundle
resources (track.mp3). Update templates to use .Resources.GetMatch
instead of .Params.audio, removing external API key dependencies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 22:51:30 +01:00

14 lines
526 B
HTML
Executable File

{{/* 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 }}