My personal website, in gleam+lustre!
0
fork

Configure Feed

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

I've become quirw the antidict hahahah

+2 -6
-1
src/homepage.gleam
··· 744 744 import chilp 745 745 import chilp/widget 746 746 import gleam/bool 747 - import gleam/dict 748 747 import gleam/function 749 748 import gleam/int 750 749 import gleam/io
+2 -5
src/homepage/view/cv.gleam
··· 1 - import gleam/dict 2 1 import gleam/list 3 2 import homepage/stuff.{type Element, type Route} 4 3 import lustre/attribute.{attribute} ··· 225 224 pub fn view(model: stuff.Model, in_dutch: Bool) -> Element { 226 225 let href = fn(r: Route) { stuff.href(r, model.raw_posts) } 227 226 // Dict(keyname, #(english, dutch)) 228 - let translations = 229 - translations 230 - |> dict.from_list() 227 + let translations = translations 231 228 let localise = fn(keyname) { 232 - case translations |> dict.get(keyname) { 229 + case translations |> list.key_find(keyname) { 233 230 Ok(v) -> 234 231 case in_dutch { 235 232 False -> v.0