mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-19 01:07:39 +00:00
refactor: consolidate layouts by migrating writing pages to main layout and removing redundant components
This commit is contained in:
@@ -1,21 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
const { data: home } = await useAsyncData(() =>
|
||||
queryCollection('writing').path('/writing').first(),
|
||||
const { data: pages } = await useAsyncData('writing-pages', () =>
|
||||
queryCollection('writing').all(),
|
||||
);
|
||||
|
||||
useSeoMeta({
|
||||
title: home.value?.title,
|
||||
description: home.value?.description,
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NuxtLayout
|
||||
name="writing"
|
||||
:title="home?.title"
|
||||
:description="home?.description"
|
||||
>
|
||||
<ContentRenderer v-if="home" :value="home" />
|
||||
<div v-else>Home not found</div>
|
||||
</NuxtLayout>
|
||||
<NuxtLayout name="main"> </NuxtLayout>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user