My personal website, in gleam+lustre!
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Chilp :eyes:


Signed-off-by: MLC Bloeiman <mar@strawmelonjuice.com>

+29 -6
+25 -6
src/homepage.gleam
··· 106 106 revised: None, 107 107 body: File(Djot, "./written-contents/blog/personal/2026/new-site.dj"), 108 108 aliases: ["first"], 109 - comments: MastodonStatusLink("pony.social", "116213072855558563"), 109 + comments: Both( 110 + post_id_mastodon: "116213072855558563", 111 + post_id_bsky: "3mgt3lymlak2c", 112 + ), 110 113 category: "Personal", 111 114 tags: [ 112 115 "gleam", ··· 804 807 import homepage/from_prebuild/data 805 808 import homepage/stuff.{ 806 809 type Badge, type Entry, type FeedEntry, type Model, type Msg, 807 - type NormalizedPost, type Post, type Route, AllAndEverything, Badge, Category, 808 - CommentsDisable, CuriculumVitae, Djot, Entry, FeedEntry, File, HTML, Index, 809 - Inline, Links, LiveBlog, Lustre, MastodonStatusLink, Me, Model, NormalizedPost, 810 - NotFound, PersonalStartPage, Plain, Portfolio, Post, PostById, Posts, Sitemap, 811 - Tagged, UserNavigatedTo, 810 + type NormalizedPost, type Post, type Route, AllAndEverything, Badge, Both, 811 + BskyOnly, Category, CommentsDisable, CuriculumVitae, Djot, Entry, FeedEntry, 812 + File, HTML, Index, Inline, Links, LiveBlog, Lustre, MastodonStatusLink, Me, 813 + Model, NormalizedPost, NotFound, PersonalStartPage, Plain, Portfolio, Post, 814 + PostById, Posts, Sitemap, Tagged, UserNavigatedTo, 812 815 } 813 816 import homepage/stuff/prestyled_elements.{ 814 817 codeforges_links, leading, paragraph, socials, subsubtitle, subtitle, title, ··· 2451 2454 element.text("Comments are disabled for this post.") 2452 2455 MastodonStatusLink(instance:, id:) -> 2453 2456 chilp.widget(Some(anchors.Mastodon(instance:, postid: id)), None) 2457 + BskyOnly(postid) -> 2458 + chilp.widget( 2459 + None, 2460 + Some(anchors.Bluesky( 2461 + did: "did:plc:jgtfsmv25thfs4zmydtbccnn", 2462 + postid:, 2463 + )), 2464 + ) 2465 + Both(id_mastodon, id_bsky) -> 2466 + chilp.widget( 2467 + Some(anchors.Mastodon("pony.social", postid: id_mastodon)), 2468 + Some(anchors.Bluesky( 2469 + did: "did:plc:jgtfsmv25thfs4zmydtbccnn", 2470 + postid: id_bsky, 2471 + )), 2472 + ) 2454 2473 }, 2455 2474 ], 2456 2475 ),
+4
src/homepage/stuff.gleam
··· 110 110 /// example https://[pony.social]/@strawmelonjuice/[115911235653686237]. 111 111 MastodonStatusLink(instance: String, id: String) 112 112 CommentsDisable 113 + /// Warning! Assumes did, to main. 114 + BskyOnly(postid: String) 115 + /// Warning! Assumes did, to main, and assumes instance to ponysocial 116 + Both(post_id_mastodon: String, post_id_bsky: String) 113 117 } 114 118 115 119 pub type NormalizedPost {