mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-19 01:07:39 +00:00
feat: introduce main and writing layouts to standardize page structure
This commit is contained in:
@@ -12,10 +12,14 @@ useSeoMeta({
|
||||
title: page.value?.title,
|
||||
description: page.value?.description,
|
||||
});
|
||||
|
||||
definePageMeta({
|
||||
layout: 'writing',
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<NuxtLayout name="writing" :title="page?.title" :description="page?.description">
|
||||
<ContentRenderer v-if="page" :value="page" />
|
||||
</div>
|
||||
</NuxtLayout>
|
||||
</template>
|
||||
|
||||
@@ -10,6 +10,12 @@ useSeoMeta({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ContentRenderer v-if="home" :value="home" />
|
||||
<div v-else>Home not found</div>
|
||||
<NuxtLayout
|
||||
name="writing"
|
||||
:title="home?.title"
|
||||
:description="home?.description"
|
||||
>
|
||||
<ContentRenderer v-if="home" :value="home" />
|
||||
<div v-else>Home not found</div>
|
||||
</NuxtLayout>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user