your personal website on atproto - mirror blento.app

Merge pull request #58 from flo-bit/fix-favicon

fix favicon

authored by Florian and committed by GitHub 800a84eb 985b5df9

+6 -4
+3 -2
src/lib/website/EditableWebsite.svelte
··· 15 15 savePage, 16 16 scrollToItem, 17 17 setPositionOfNewItem, 18 - validateLink 18 + validateLink, 19 + getImage 19 20 } from '../helper'; 20 21 import EditableProfile from './EditableProfile.svelte'; 21 22 import type { Item, WebsiteData } from '../types'; ··· 579 580 /> 580 581 581 582 <Head 582 - favicon={data.profile.avatar ?? null} 583 + favicon={getImage(data.publication, data.did, 'icon') || data.profile.avatar} 583 584 title={getName(data)} 584 585 image={'/' + data.handle + '/og.png'} 585 586 accentColor={data.publication?.preferences?.accentColor}
+3 -2
src/lib/website/Website.svelte
··· 6 6 getHideProfileSection, 7 7 getProfilePosition, 8 8 getName, 9 - sortItems 9 + sortItems, 10 + getImage 10 11 } from '../helper'; 11 12 import { innerWidth } from 'svelte/reactivity/window'; 12 13 import { setDidContext, setHandleContext, setIsMobile } from './context'; ··· 56 57 </script> 57 58 58 59 <Head 59 - favicon={data.profile.avatar ?? null} 60 + favicon={getImage(data.publication, data.did, 'icon') || data.profile.avatar} 60 61 title={getName(data)} 61 62 image={'/' + data.handle + '/og.png'} 62 63 description={getDescription(data)}