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
2 changes: 1 addition & 1 deletion src/content.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const posts = defineCollection({
description: z.string().optional(),
date: z.string(),
updated: z.string().optional(),
feat: z.boolean().default(false), // whether this is showed in main stage
tags: z.array(z.string()).default([]),
feat: z.boolean(), // whether this is showed in main stage
stageImage: image().optional(),
stageTone: z.enum(["dark", "light"]).default("dark"),
color: z.string().optional(),
Expand Down
1 change: 1 addition & 0 deletions src/content/posts/bitcoin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Bitcoin, and then miners"
description: "Pools, farms and miners"
date: "2026-07-28"
feat: true
tags: ["bitcoin", "crypto", "cryptocurrency"]
stageImage: "../../assets/bitcoin-bg.webp"
color: "#F7941D"
Expand Down
1 change: 1 addition & 0 deletions src/content/posts/prologue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "prologue"
description: "A playground where I throw in as much fun as I can."
date: "2026-08-28"
feat: true
tags: []
color: "#d72d1a"
stageTone: "light"
Expand Down
3 changes: 2 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ async function cardSrc(image: ImageMetadata | undefined) {
// stage caption numbers itself off the same positions and the two indexes have
// to agree.
const posts = await getSortedPosts();
const featured = posts.filter((post) => post.data.feat);
const unordered = await Promise.all(
posts.map(async (post) => ({
featured.map(async (post) => ({
id: post.id,
title: post.data.title,
description: post.data.description,
Expand Down
30 changes: 0 additions & 30 deletions src/pages/posts/[slug].astro

This file was deleted.