diff --git a/app/pages/writing/index.vue b/app/pages/writing/index.vue index afba72c..f89f084 100644 --- a/app/pages/writing/index.vue +++ b/app/pages/writing/index.vue @@ -7,9 +7,10 @@ import { websiteId, } from '~/utils/site'; -const { data: pages } = await useAsyncData('writing-pages', () => - queryCollection('writing').order('date', 'DESC').all(), -); +const { data: pages } = await useAsyncData('writing-pages', async () => { + const all = await queryCollection('writing').order('date', 'DESC').all(); + return import.meta.dev ? all : all.filter((page) => !page.demo); +}); const writingUrl = `${SITE_URL}/writing`; const collectionId = `${writingUrl}#collection`; diff --git a/content.config.ts b/content.config.ts index 95b9a98..246a2ed 100644 --- a/content.config.ts +++ b/content.config.ts @@ -12,6 +12,7 @@ export default defineContentConfig({ title: z.string(), date: z.coerce.date(), description: z.string(), + demo: z.boolean().optional(), }), }), }, diff --git a/content/writing/notes-in-the-margin.md b/content/writing/demo.md similarity index 99% rename from content/writing/notes-in-the-margin.md rename to content/writing/demo.md index 182ab07..9947556 100644 --- a/content/writing/notes-in-the-margin.md +++ b/content/writing/demo.md @@ -2,6 +2,7 @@ title: Notes in the margin date: 2026-08-22 description: Every mark this site knows how to make — body type, asides, notices, redaction, quotes, lists, code, and images. +demo: true --- This page is a working sample, not an essay. Walk it when you change type, color, or a content component. The **description** above is the article lead — bold, then the body. diff --git a/content/writing/frontend_developers_are_underpaid.md b/content/writing/frontend_developers_are_underpaid.md index 8c01f32..3630991 100644 --- a/content/writing/frontend_developers_are_underpaid.md +++ b/content/writing/frontend_developers_are_underpaid.md @@ -1,6 +1,6 @@ --- title: 'hot take: frontend developers are underpaid.' -date: 2026-05-03 +date: 2026-09-22 description: that shit is hard ---