💻 My personal website blog.kacaii.dev/
blog gleam lustre

:truck: rename `recent_post` to `post`

+3 -3
+3 -3
src/blog/page/recent_posts.gleam
··· 26 26 ]) 27 27 } 28 28 29 - pub fn post_to_li(recent_post: post.Post) { 30 - let meta = recent_post.meta 29 + pub fn post_to_li(post: post.Post) { 30 + let meta = post.meta 31 31 32 32 let str_date = { 33 33 let date = meta.date ··· 39 39 string.join([day, month, year], with: " ") 40 40 } 41 41 42 - let href = attr.href("/posts/" <> post.to_kebab_case(recent_post)) 42 + let href = attr.href("/posts/" <> post.to_kebab_case(post)) 43 43 let style = class("flex flex-col p-4 mx-auto w-full rounded-lg bg-ctp-mantle") 44 44 45 45 html.li([style], [