@@ -4,13 +4,9 @@ import Button from "../components/Button.astro";
44import Section from " ../components/Section.astro" ;
55import Label from " ../components/Label.astro" ;
66import News from " ../components/News.astro" ;
7-
87import news from " ../assets/news.json" ;
9-
108import type { NewsPost } from " @/utils" ;
119
12- // import { getAllPosts, sortMDByDate } from "@/utils";
13-
1410const interests = [
1511 " Probabilistic Machine Learning" ,
1612 " Uncertainty Quantification" ,
@@ -24,10 +20,6 @@ const sortedNews = news
2420 return new Date (post2 .date ).getTime () - new Date (post1 .date ).getTime (); // descending
2521 })
2622 .slice (0 , MAX_NEWS );
27-
28- // const MAX_POSTS = 10;
29- // const allPosts = await getAllPosts();
30- // const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS);
3123---
3224
3325<PageLayout meta ={ { title: " About" }} >
@@ -276,19 +268,5 @@ const sortedNews = news
276268 </Section >
277269 )
278270 }
279-
280- <!-- <hr /> -->
281- <!-- <hr /> -->
282- <!-- { -->
283- <!-- allPostsByDate.length > 0 && ( -->
284- <!-- <Section title='Latest Posts'> -->
285- <!-- <ul class='flex flex-col gap-y-5 sm:gap-y-4'> -->
286- <!-- {allPostsByDate.slice(0, 5).map((p) => ( -->
287- <!-- <PostPreview post={p} maxDescWords={18} withDesc /> -->
288- <!-- ))} -->
289- <!-- </ul> -->
290- <!-- </Section> -->
291- <!-- ) -->
292- <!-- } -->
293271 </div >
294272</PageLayout >
0 commit comments