Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/content.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const blog = defineCollection({
title: z.string(),
description: z.string(),
subtitle: z.string().optional(),
author: z.string().optional(),
section: z.string().optional(),
date: z.coerce.date(),
hidden: z.boolean().optional().default(false),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ description: >-
The revisionist claim that writing code was never the hard part arrives
conveniently at the moment AI makes it cheap to produce. But the market, the
machine, and the engineers who built it all tell a different story.
author: InlinePizza
date: '2026-02-24T00:00:00.000Z'
section: Technical
section: Opinion
hidden: false
---

Expand Down
3 changes: 3 additions & 0 deletions src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const { Content, headings } = await render(entry);
<p class="collection-back-link">
<a href="/blog">← Back to Blog</a>
</p>
{entry.data.author && (
<p class="collection-post-author">By {entry.data.author}</p>
)}
<Content />
<p class="collection-back-link collection-back-link-bottom">
<a href="/blog">← Back to Blog</a>
Expand Down
3 changes: 3 additions & 0 deletions src/pages/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ const getSectionLabel = (section?: string) => section || 'Other';
<h2 class="collection-feed-title">
<a href={`/blog/${entry.slug}`}>{entry.data.title}</a>
</h2>
{entry.data.author && (
<p class="collection-feed-author">By {entry.data.author}</p>
)}
{(entry.data.description || entry.data.subtitle) && (
<p class="collection-feed-description">{entry.data.description || entry.data.subtitle}</p>
)}
Expand Down
14 changes: 14 additions & 0 deletions src/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,20 @@ main:has(.pl-site-page.pl-site-page-compact) .content-panel + .content-panel {
text-decoration: underline;
}

.collection-feed-author {
margin: 0;
color: var(--sl-color-gray-3);
font-size: var(--sl-text-xs);
font-weight: 500;
}

.collection-post-author {
margin: 0 0 1.5rem;
color: var(--sl-color-gray-3);
font-size: var(--sl-text-sm);
font-weight: 500;
}

.collection-feed-description {
margin: 0;
max-width: 72ch;
Expand Down