Added SEO metadata

This commit is contained in:
2026-06-14 17:39:10 -05:00
parent adac794929
commit c644db39b5
2 changed files with 34 additions and 17 deletions
+24 -17
View File
@@ -12,7 +12,10 @@ if (!page.value) {
useSeoMeta({
title: page.value?.title,
ogTitle: page.value?.title,
description: page.value?.description,
ogDescription: page.value?.description,
ogUrl: useRequestURL().href,
});
definePageMeta({
@@ -23,23 +26,27 @@ definePageMeta({
<template>
<div>
<NuxtLayout
name="main"
:title="page?.title"
:description="page?.description"
>
<template #header-upper>
<div class="header-upper-inner">
<NuxtLink
to="/writing"
class="back-link"
aria-label="Back to writing"
>
<span class="arrow">←</span>
<span>Back</span>
</NuxtLink>
</div>
</template>
<ContentRenderer class="writing__content" v-if="page" :value="page" />
name="main"
:title="page?.title"
:description="page?.description"
>
<template #header-upper>
<div class="header-upper-inner">
<NuxtLink
to="/writing"
class="back-link"
aria-label="Back to writing"
>
<span class="arrow">←</span>
<span>Back</span>
</NuxtLink>
</div>
</template>
<ContentRenderer
class="writing__content"
v-if="page"
:value="page"
/>
</NuxtLayout>
</div>
</template>