New years' post!

Updated: 07 Jan 2025

So here’s what I plan to do in 2025:

Computer Science:

Biology:

Life:


Some small progress updates for the website:

This site is now my official personal website, and the site listed under my github profile.

I finally used Astro.glob() to collect and insert my posts into my website! This is great for automating the tedious task of inserting each entry myself, which is why Astro (and using frameworks in general) is so helpful.

Mini-goal: Consider programming an image carousel, and find more ways to include user interactivity into the site

Here’s how I get my posts inserted into the index of this site:

  1. I import type { MarkdownLayoutProps } from 'astro'

  2. Establish some javascript constants at the top of the page (between the --- lines)

const posts = await Astro.glob('../pages/posts/*.md');
type Props = MarkdownLayoutProps<{
  title: string;
  date: string;
}>;

const { frontmatter, url } = Astro.props;

  1. I use posts.map() to finally insert the collected posts into the intedent format (in this case I am using my <Card/> Astro component)
{posts.map(post =><Card href={post.url}, title={post.frontmatter.title}, body={post.frontmatter.date}/>)}