tangled
alpha
login
or
join now
kacaii.dev
/
blog
0
fork
atom
💻 My personal website
blog.kacaii.dev/
blog
gleam
lustre
0
fork
atom
overview
issues
pulls
pipelines
:truck: rename `recent_post` to `post`
kacaii.dev
2 months ago
3a4305a5
68da7d91
+3
-3
1 changed file
expand all
collapse all
unified
split
src
blog
page
recent_posts.gleam
+3
-3
src/blog/page/recent_posts.gleam
···
26
26
])
27
27
}
28
28
29
29
-
pub fn post_to_li(recent_post: post.Post) {
30
30
-
let meta = recent_post.meta
29
29
+
pub fn post_to_li(post: post.Post) {
30
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
42
-
let href = attr.href("/posts/" <> post.to_kebab_case(recent_post))
42
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], [