Skip to content

Commit c495093

Browse files
committed
Merge branch 'master' of github.com:wiseodd/wiseodd.github.io
2 parents fa649d1 + 4c5a399 commit c495093

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/pages/index.astro

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ import Button from "../components/Button.astro";
44
import Section from "../components/Section.astro";
55
import Label from "../components/Label.astro";
66
import News from "../components/News.astro";
7-
87
import news from "../assets/news.json";
9-
108
import type { NewsPost } from "@/utils";
119
12-
// import { getAllPosts, sortMDByDate } from "@/utils";
13-
1410
const 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

Comments
 (0)