File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -120,13 +120,13 @@ def card_content(meta: dict, path: str) -> rx.Component:
120120def first_post () -> rx .Component :
121121 for path , document in blog_data .items ():
122122 if path == list (blog_data .keys ())[0 ]:
123- return first_post_card (meta = document .metadata , path = path )
123+ return first_post_card (meta = document .metadata , path = f"/blog/ { path } " )
124124
125125
126126def component_grid () -> rx .Component :
127127 posts = []
128128 for path , document in list (blog_data .items ()):
129- posts .append (card_content (meta = document .metadata , path = path ))
129+ posts .append (card_content (meta = document .metadata , path = f"/blog/ { path } " ))
130130 return rx .box (
131131 * posts ,
132132 class_name = "gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 lg:[&>*:first-child]:hidden" ,
You can’t perform that action at this time.
0 commit comments