a tool for shared writing and social publishing

fix links and themes for standalone docs on profile

+2 -2
+2 -2
components/PostListing.tsx
··· 22 22 let postRecord = props.documents.data as PubLeafletDocument.Record; 23 23 let postUri = new AtUri(props.documents.uri); 24 24 25 - let theme = usePubTheme(pubRecord?.theme); 25 + let theme = usePubTheme(pubRecord?.theme || postRecord?.theme); 26 26 let backgroundImage = 27 27 pubRecord?.theme?.backgroundImage?.image?.ref && props.publication 28 28 ? blobRefToSrc( ··· 46 46 // For standalone posts, link directly to the document 47 47 let postHref = props.publication 48 48 ? `${props.publication.href}/${postUri.rkey}` 49 - : `/doc/${postUri.host}/${postUri.rkey}`; 49 + : `/p/${postUri.host}/${postUri.rkey}`; 50 50 51 51 return ( 52 52 <BaseThemeProvider {...theme} local>