your personal website on atproto - mirror blento.app
26
fork

Configure Feed

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

add cache bust to og images

Florian 130ccff5 221a989c

+6 -4
+3 -2
src/lib/website/EditableWebsite.svelte
··· 53 53 54 54 const ogImageUrl = $derived.by(() => { 55 55 const origin = page.url.origin; 56 - if (page.data.customDomain) return `${origin}/og-new.png`; 56 + const v = data.updatedAt ? `?v=${data.updatedAt}` : ''; 57 + if (page.data.customDomain) return `${origin}/og-new.png${v}`; 57 58 const handle = data.profile?.handle; 58 59 const actor = handle && handle !== 'handle.invalid' ? handle : data.did; 59 - return `${origin}/${actor}/og-new.png`; 60 + return `${origin}/${actor}/og-new.png${v}`; 60 61 }); 61 62 62 63 // Snapshot the original cards and sections so savePage can detect deletions.
+3 -2
src/lib/website/Website.svelte
··· 47 47 48 48 const ogImageUrl = $derived.by(() => { 49 49 const origin = page.url.origin; 50 - if (page.data.customDomain) return `${origin}/og-new.png`; 50 + const v = data.updatedAt ? `?v=${data.updatedAt}` : ''; 51 + if (page.data.customDomain) return `${origin}/og-new.png${v}`; 51 52 const handle = data.profile?.handle; 52 53 const actor = handle && handle !== 'handle.invalid' ? handle : data.did; 53 - return `${origin}/${actor}/og-new.png`; 54 + return `${origin}/${actor}/og-new.png${v}`; 54 55 }); 55 56 56 57 let container: HTMLDivElement | undefined = $state();