mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-18 17:06:56 +00:00
small tweaks
This commit is contained in:
@@ -129,7 +129,7 @@ const onFontChange = (event: Event) => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1.25rem;
|
||||
margin-bottom: 2.75rem;
|
||||
margin-bottom: 3.5rem;
|
||||
font-family: var(--font-plain);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ const { data } = await useAsyncData(
|
||||
() => `writing:${route.path}`,
|
||||
async () => {
|
||||
const all = await queryCollection('writing').order('date', 'DESC').all();
|
||||
const visible = all.filter((page) => import.meta.dev || !page.demo);
|
||||
const visible = all.filter((page) => import.meta.dev || !page.hidden);
|
||||
const article = visible.find(
|
||||
(page) =>
|
||||
page.path === contentPath.value || page.stem === slug.value,
|
||||
|
||||
@@ -7,13 +7,10 @@ import {
|
||||
websiteId,
|
||||
} from '~/utils/site';
|
||||
|
||||
// TODO: Uncomment when ready to show writing
|
||||
// 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 pages = ref<any[]>([]);
|
||||
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.hidden);
|
||||
});
|
||||
|
||||
const writingUrl = `${SITE_URL}/writing`;
|
||||
const collectionId = `${writingUrl}#collection`;
|
||||
|
||||
Reference in New Issue
Block a user