mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-18 17:06:56 +00:00
omit demo page
This commit is contained in:
@@ -7,9 +7,10 @@ import {
|
|||||||
websiteId,
|
websiteId,
|
||||||
} from '~/utils/site';
|
} from '~/utils/site';
|
||||||
|
|
||||||
const { data: pages } = await useAsyncData('writing-pages', () =>
|
const { data: pages } = await useAsyncData('writing-pages', async () => {
|
||||||
queryCollection('writing').order('date', 'DESC').all(),
|
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 writingUrl = `${SITE_URL}/writing`;
|
||||||
const collectionId = `${writingUrl}#collection`;
|
const collectionId = `${writingUrl}#collection`;
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export default defineContentConfig({
|
|||||||
title: z.string(),
|
title: z.string(),
|
||||||
date: z.coerce.date(),
|
date: z.coerce.date(),
|
||||||
description: z.string(),
|
description: z.string(),
|
||||||
|
demo: z.boolean().optional(),
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Notes in the margin
|
title: Notes in the margin
|
||||||
date: 2026-08-22
|
date: 2026-08-22
|
||||||
description: Every mark this site knows how to make — body type, asides, notices, redaction, quotes, lists, code, and images.
|
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.
|
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.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: 'hot take: frontend developers are underpaid.'
|
title: 'hot take: frontend developers are underpaid.'
|
||||||
date: 2026-05-03
|
date: 2026-09-22
|
||||||
description: that shit is hard
|
description: that shit is hard
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user