File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ import { render , type CollectionEntry } from ' astro:content' ;
3+
4+ interface Props {
5+ entry: CollectionEntry <' talks' >;
6+ }
7+
8+ const { entry } = Astro .props ;
9+ const { Content } = await render (entry );
10+ ---
11+
12+ <li class =" py-0.5" >
13+ <div class =" flex gap-5" >
14+ <div class =" relative min-w-28 shrink-0" >
15+ <span class =" text-muted-foreground text-sm" >{ entry .data .year } </span >
16+ </div >
17+ <div class =" flex flex-col gap-3" >
18+ <div class =" flex flex-col" >
19+ <span class =" text-headings font-medium" >{ entry .data .title } </span >
20+ <span class =" text-foreground text-sm" >{ entry .data .event } , { entry .data .location } </span >
21+ </div >
22+ <div class =" prose dark:prose-invert prose-sm" >
23+ <Content />
24+ </div >
25+ </div >
26+ </div >
27+ </li >
You can’t perform that action at this time.
0 commit comments