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,
|
||||
} 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`;
|
||||
|
||||
Reference in New Issue
Block a user