alpha
Login
or
Join now
flo-bit.dev
/
bluesky-home
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/flo-bit/bluesky-home.
flo-bit.dev/bluesky-home/
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
update pds data structure
author
Florian
date
1 year ago
(May 5, 2025, 3:13 AM +0200)
commit
ea86ea3b
ea86ea3b5b90d4fef4c17b4b8d3f7c2f44118f7a
parent
68c8660d
68c8660dffcdbc034cdb6ba7069f3a64f5c15ba0
+8
-11
3 changed files
Expand all
Collapse all
Unified
Split
src
components
Links.astro
Navigation
Navigation.astro
utils
atproto.ts
+4
-4
src/components/Links.astro
View file
Reviewed
···
8
8
9
9
<div class="text-white mt-6 px-4 flex flex-col gap-6">
10
10
{
11
11
-
links.map((link) => (
11
11
+
links[0].data.value.links.map((link: any) => (
12
12
<div>
13
13
<a
14
14
-
href={link.data.value.url}
14
14
+
href={link.url}
15
15
target="_blank"
16
16
class="font-medium text-accent-600 dark:text-accent-400"
17
17
>
18
18
-
{link.data.value.label ?? link.data.value.url}
18
18
+
{link.title ?? link.url}
19
19
</a>
20
20
21
21
<div class="text-base-600 dark:text-base-400 mt-1 text-sm">
22
22
-
{link.data.value.description}
22
22
+
{link.description}
23
23
</div>
24
24
</div>
25
25
))
+1
-4
src/components/Navigation/Navigation.astro
View file
Reviewed
···
4
4
let { active } = Astro.props;
5
5
---
6
6
7
7
-
<DesktopNavigation
8
8
-
items={["about", "links", "feed", "blog", "comments"]}
9
9
-
active={active}
10
10
-
/>
7
7
+
<DesktopNavigation items={["about", "links", "feed"]} active={active} />
+3
-3
src/utils/atproto.ts
View file
Reviewed
···
92
92
fetching: do {
93
93
const data = await listRecords({
94
94
did,
95
95
-
collection: "link.flo-bit.dev",
95
95
+
collection: "dev.flo-bit.links",
96
96
cursor,
97
97
});
98
98
···
268
268
id: data.uri,
269
269
data: parsed,
270
270
body: parsed.plaintext,
271
271
-
rendered: {html: await marked.parse(data.value.content)},
271
271
+
rendered: {html: await marked.parse(data.value.about)},
272
272
});
273
273
274
274
275
275
} catch (error) {
276
276
logger.error(
277
277
-
`Failed to load Bluesky links. ${(error as Error).message}`,
277
277
+
`Failed to load Bluesky about. ${(error as Error).message}`,
278
278
);
279
279
}
280
280
},