mirror of
https://github.com/sammyshear/sshear.dev.git
synced 2025-12-06 03:15:53 +00:00
Changed to dates only
This commit is contained in:
parent
d2dc056509
commit
fbf31e7216
@ -14,7 +14,9 @@ const { Content } = await post.render();
|
||||
<header class="flex flex-col space-between-10 border-b-ctp-text border-b">
|
||||
<h1 class="text-2xl">{post.data.title}</h1>
|
||||
<h4 class="text-lg text-ctp-subtext0">{post.data.author}</h4>
|
||||
<h4 class="text-lg text-ctp-subtext0">{post.data.publishedTime}</h4>
|
||||
<h4 class="text-lg text-ctp-subtext0">
|
||||
{post.data.publishedTime.toLocaleDateString()}
|
||||
</h4>
|
||||
</header>
|
||||
<main class="mt-5">
|
||||
<Prose>
|
||||
|
||||
@ -1,29 +1,29 @@
|
||||
import type { CollectionEntry } from "astro:content";
|
||||
|
||||
type Props = {
|
||||
posts: CollectionEntry<"blog">[];
|
||||
posts: CollectionEntry<"blog">[];
|
||||
};
|
||||
|
||||
export default function Posts({ posts }: Props) {
|
||||
return (
|
||||
<div className="flex flex-col space-y-10 mt-5">
|
||||
{posts.map((post: CollectionEntry<"blog">) => {
|
||||
return (
|
||||
<a
|
||||
className="flex flex-col bg-ctp-surface1 p-4 rounded-md"
|
||||
key={post.id}
|
||||
href={`/posts/${post.slug}`}
|
||||
>
|
||||
<span className="text-2xl">{post.data.title}</span>
|
||||
<span className="text-sm text-ctp-subtext0">
|
||||
{post.data.author}
|
||||
</span>
|
||||
<span className="text-sm text-ctp-subtext0">
|
||||
{post.data.publishedTime.toLocaleString()}
|
||||
</span>
|
||||
</a>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
return (
|
||||
<div className="flex flex-col space-y-10 mt-5">
|
||||
{posts.map((post: CollectionEntry<"blog">) => {
|
||||
return (
|
||||
<a
|
||||
className="flex flex-col bg-ctp-surface1 p-4 rounded-md"
|
||||
key={post.id}
|
||||
href={`/posts/${post.slug}`}
|
||||
>
|
||||
<span className="text-2xl">{post.data.title}</span>
|
||||
<span className="text-sm text-ctp-subtext0">
|
||||
{post.data.author}
|
||||
</span>
|
||||
<span className="text-sm text-ctp-subtext0">
|
||||
{post.data.publishedTime.toLocaleDateString()}
|
||||
</span>
|
||||
</a>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Building the Same App 5 Times
|
||||
publishedTime: 2021-08-18T00:02:25.286Z
|
||||
publishedTime: 2021-08-18
|
||||
---
|
||||
|
||||
### Originally Published on Dev.To
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: I Followed a 40 year old Pascal Book (in Rust)
|
||||
publishedTime: 2024-01-05T19:09:05.026Z
|
||||
publishedTime: 2024-01-05
|
||||
---
|
||||
|
||||
My father is a big fan of mystery novels, certainly more than I am. I enjoy a Sherlock Holmes story now and again, and I have had fun reading Agatha Christie novels, but he is and always will be a bigger fan of the genre than I. That being said, there is one mystery book I find much more interesting to me than he ever has, and that is "Elementary Pascal" by Henry Ledgard and Andrew Singer. My father will happily tell you the furthest he got in computer programming was making a 3D Cube in Basic and reading the programs for his Commodore 64 in a magazine, but almost never running them as he would have had to copy them each by hand. I, on the other hand, have much more of an interest in programming, as might be evident from the fact I am writing this blog post where I do so. When I was first learning to program as a kid, my father gave me this book that he'd had since he was a kid. He claimed to have hardly read it, but that I might be interested in it, and compared to him I certainly was. That said, I only ever read a few of the examples, as I had very little actual interest in learning Pascal. In more recent years, the book has sat on my shelf, undisturbed, waiting to once again be opened. Today was that day.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Writing My Own Language Server in Go (to Parse Chess PGNs)
|
||||
publishedTime: 2024-06-26T19:16:00.006Z
|
||||
publishedTime: 2024-06-26
|
||||
---
|
||||
|
||||
### What is a Language Server?
|
||||
|
||||
@ -2,12 +2,12 @@ import { SITE } from "../config";
|
||||
import { defineCollection, z } from "astro:content";
|
||||
|
||||
const blog = defineCollection({
|
||||
type: "content",
|
||||
schema: z.object({
|
||||
author: z.string().default(SITE.author),
|
||||
title: z.string(),
|
||||
publishedTime: z.date()
|
||||
})
|
||||
type: "content",
|
||||
schema: z.object({
|
||||
author: z.string().default(SITE.author),
|
||||
title: z.string(),
|
||||
publishedTime: z.date()
|
||||
})
|
||||
});
|
||||
|
||||
export const collections = { blog };
|
||||
|
||||
Loading…
Reference in New Issue
Block a user