a tool for shared writing and social publishing

pass is standalone to usePubTheme

Changed files
+3 -1
components
+3 -1
components/PostListing.tsx
··· 24 24 let postUri = new AtUri(props.documents.uri); 25 25 let uri = props.publication ? props.publication?.uri : props.documents.uri; 26 26 27 - let theme = usePubTheme(pubRecord?.theme || postRecord?.theme); 27 + // For standalone documents (no publication), pass isStandalone to get correct defaults 28 + let isStandalone = !pubRecord; 29 + let theme = usePubTheme(pubRecord?.theme || postRecord?.theme, isStandalone); 28 30 let themeRecord = pubRecord?.theme || postRecord?.theme; 29 31 let backgroundImage = 30 32 themeRecord?.backgroundImage?.image?.ref && uri