Update date parsing on blog; fix Makefile

This commit is contained in:
Timothy Pidashev
2025-01-14 12:19:13 -08:00
parent b14fd5d7e7
commit c89318ddd8
5 changed files with 701 additions and 789 deletions

1335
src/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,7 @@ title: My First Post!
description: A quick introduction
author: Timothy Pidashev
tags: [greeting]
date: January 9, 2025
date: 2025-01-09
image: "/blog/my-first-post/thumbnail.png"
imagePosition: "center 30%"
---

View File

@@ -1,14 +1,13 @@
---
import { getCollection } from "astro:content";
import ContentLayout from "@/layouts/content.astro";
import { BlogPostList } from "@/components/blog/post-list";
const posts = (await getCollection("blog", ({ data }) => {
return data.isDraft !== true;
})).sort(
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()
);
})).sort((a, b) => {
return new Date(b.data.date).valueOf() - new Date(a.data.date).valueOf()
});
---
<ContentLayout

View File

@@ -7,7 +7,7 @@ import Hero from "@/components/hero";
<IndexLayout
title="Timothy Pidashev"
description="Turning coffee into code since 2018."
description="Software engineer passionate about systems programming, artificial intelligence, and building innovative solutions. Personal site featuring my projects, technical blog, and research."
>
<Hero client:load />
</IndexLayout>