💻 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/home: move variables to inside the function

author
kacaii.dev
date (Jul 21, 2026, 7:56 PM -0300) commit 0f7277f5 parent 12cd9bbe change-id ulyuswrp
+6 -9
+6 -9
src/blog/page/home.gleam
··· 36 36 _model: Model, 37 37 atproto: atproto.AtProto, 38 38 ) -> element.Element(Message) { 39 - let rss_href = attr.href("https://blog.kacaii.dev/rss") 40 - let did = did.to_string(atproto.did) 41 - let bluesky_href = attr.href("https://bsky.app/profile/" <> did) 42 - 43 39 let html = [ 44 40 html.h1([], [html.text("home")]), 45 41 view_profile_card(atproto), 46 - view_introduction(rss_href, bluesky_href), 42 + view_introduction(atproto), 47 43 view_showcases(), 48 44 ] 49 45 ··· 130 126 element.fragment(html) 131 127 } 132 128 133 - fn view_introduction( 134 - rss_href: attr.Attribute(Message), 135 - bluesky_href: attr.Attribute(Message), 136 - ) -> element.Element(Message) { 129 + fn view_introduction(atproto: atproto.AtProto) -> element.Element(Message) { 130 + let did = did.to_string(atproto.did) 131 + let rss_href = attr.href("https://blog.kacaii.dev/rss") 132 + let bluesky_href = attr.href("https://bsky.app/profile/" <> did) 133 + 137 134 html.article([], [ 138 135 html.p([attr.class("flex gap-2")], [ 139 136 icon.rat([]),