11---
22import Keynoter from " ./keynoter.astro" ;
3- import Headline from " @ui/Headline.astro"
3+ import Headline from " @ui/Headline.astro" ;
44import Button from " @ui/Button.astro" ;
55
66import { getCollection } from " astro:content" ;
@@ -83,19 +83,22 @@ const placeholders = Math.max(0, 6 - keynoters.length);
8383
8484 <ul class =" p-0 mt-12 flex gap-6 flex-wrap" >
8585 {
86- keynoters .map ((keynoter , index ) => (
87- <Keynoter
88- name = { keynoter .data .name }
89- slug = { keynoter .slug }
90- tagline = { keynoter .data .tagline }
91- image = { keynoter .data .image }
92- placeholder = { false }
93- class :list = { [
94- " w-full sm:w-[calc(50%-1rem)] md:w-[calc(30%-1rem)]" ,
95- { " md:ml-[10%]" : index === 0 },
96- ]}
97- />
98- ))
86+ keynoters
87+ .sort ((a , b ) => a .data .order - b .data .order )
88+ .map ((keynoter , index ) => (
89+ <Keynoter
90+ name = { keynoter .data .name }
91+ slug = { keynoter .slug }
92+ tagline = { keynoter .data .tagline }
93+ image = { keynoter .data .image }
94+ placeholder = { false }
95+ order = { keynoter .data .order }
96+ class :list = { [
97+ " w-full sm:w-[calc(50%-1rem)] md:w-[calc(30%-1rem)]" ,
98+ { " md:ml-[10%]" : index === 0 },
99+ ]}
100+ />
101+ ))
99102 }
100103 {
101104 new Array (placeholders )
@@ -118,7 +121,7 @@ const placeholders = Math.max(0, 6 - keynoters.length);
118121 <span class =" text-body-light inline-block mr-2" >#</span >
119122 See other sessions
120123 </h3 >
121- <Button url =" /sessions" >List of Sessions </Button >
124+ <Button url =" /programme/ sessions" >See sessions preview </Button >
122125 </div >
123126 </div >
124127</section >
0 commit comments