tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
fix links and themes for standalone docs on profile
awarm.space
3 months ago
d88de291
625e507c
+2
-2
1 changed file
expand all
collapse all
unified
split
components
PostListing.tsx
+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
25
-
let theme = usePubTheme(pubRecord?.theme);
25
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
49
-
: `/doc/${postUri.host}/${postUri.rkey}`;
49
49
+
: `/p/${postUri.host}/${postUri.rkey}`;
50
50
51
51
return (
52
52
<BaseThemeProvider {...theme} local>