💻 My corner on the internet kacaii.dev/
lustre evergarden wisp-place gleam atproto
0

Configure Feed

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

blog/page/about: pass the whole atproto field to the view function

author
kacaii.dev
date (Jul 19, 2026, 12:28 PM -0300) commit 4571ad71 parent 93d79cec change-id llvylkqs
+7 -8
+1 -3
src/blog.gleam
··· 264 264 } 265 265 266 266 pub fn view(model: Model) -> element.Element(Message) { 267 - let did = model.atproto.did 268 - 269 267 case model { 270 268 Model(page: About(_), ..) -> { 271 - let html = about.view(did) 269 + let html = about.view(model.atproto) 272 270 layout(model, html, AboutMessage) 273 271 } 274 272
+6 -5
src/blog/page/about.gleam
··· 1 + import blog/atproto 1 2 import lustre/attribute as attr 2 3 import lustre/effect 3 4 import lustre/element ··· 14 15 #(Model, effect.none()) 15 16 } 16 17 17 - pub fn view(did: did.Did) -> element.Element(Message) { 18 + pub fn view(atproto: atproto.AtProto) -> element.Element(Message) { 18 19 let html = [ 19 20 html.h1([], [html.text("about")]), 20 21 ··· 28 29 ]), 29 30 30 31 html.ul([attr.class("list-inside list-disc")], [ 31 - html.li([], [bluesky(did)]), 32 + html.li([], [bluesky(atproto.did)]), 32 33 33 34 html.li([], [ 34 35 html.text("ATmosphere: "), 35 36 html.code([attr.class("rounded-sm select-all")], [ 36 - html.text("did:plc:dvyyslcz7bicxdumlccviqyv"), 37 + html.text(did.to_string(atproto.did)), 37 38 ]), 38 39 ]), 39 40 ··· 60 61 ]), 61 62 html.ul([attr.class("list-inside list-disc")], [ 62 63 html.li([], [leaflet()]), 63 - html.li([], [sifa_id(did)]), 64 - html.li([], [tangled(did)]), 64 + html.li([], [sifa_id(atproto.did)]), 65 + html.li([], [tangled(atproto.did)]), 65 66 ]), 66 67 67 68 html.h2([], [html.text("traits")]),